b5b5d7ac5ba032f7f12559b5217ded506afb5cbb
Guides/Toolbar-Buttons.md
| ... | ... | @@ -1,12 +1,12 @@ |
| 1 | 1 | [[_TOC_]] |
| 2 | 2 | |
| 3 | -##Report Viewer |
|
| 3 | +#Report Viewer |
|
| 4 | 4 | |
| 5 | 5 | All buttons in the Report Viewer are implemented in pure HTML. They all can be manipulated from Resources/html/ReportViewer-Body.ascx. To completely disable any button, simply remove it from the ascx file. If you wish to conditionally suppress a button, you can write conditional logic in your ascx to hide it based on your own custom logic. |
| 6 | 6 | |
| 7 | -###Report List Button |
|
| 7 | +##Report List Button |
|
| 8 | 8 | |
| 9 | - |
|
| 9 | + |
|
| 10 | 10 | |
| 11 | 11 | The report list button is used to jump right into the report list. This is the code within the ReportViewer-Body.ascx that renders this button: |
| 12 | 12 | ```html |
| ... | ... | @@ -16,5 +16,49 @@ The report list button is used to jump right into the report list. This is the c |
| 16 | 16 | </a> |
| 17 | 17 | ``` |
| 18 | 18 | |
| 19 | -###Save Options Button |
|
| 19 | +##Save Options |
|
| 20 | + |
|
| 21 | + |
|
| 22 | + |
|
| 23 | +Clicking the downward facing triangle next to the save icon will reveal further save options; save and save as. |
|
| 24 | + |
|
| 25 | +```html |
|
| 26 | +<button type="button" class="btn" lang-title="js_Save" title="Save" id="btnSaveDirect" onclick="javascript:event.preventDefault();SaveReportSet();"> |
|
| 27 | + <img class="icon" src="rs.aspx?image=ModernImages.floppy.png" lang-alt="js_Save" alt="Save" /> |
|
| 28 | + <span class="hide" lang-text="js_Save">Save</span> |
|
| 29 | +</button> |
|
| 30 | + |
|
| 31 | +<button type="button" class="btn dropdown-toggle" data-toggle="dropdown"> |
|
| 32 | + <span class="caret"></span> |
|
| 33 | +</button> |
|
| 34 | +``` |
|
| 35 | + |
|
| 36 | +###Save |
|
| 37 | + |
|
| 38 | + |
|
| 39 | + |
|
| 40 | +The save button simply saves the current report. |
|
| 41 | + |
|
| 42 | +```html |
|
| 43 | +<li class="hide-readonly"><a href="javascript:void(0)" style="min-width: 18em;" onclick="javascript:SaveReportSet();"> |
|
| 44 | + <img class="icon" src="rs.aspx?image=ModernImages.save-32.png" lang-alt="js_SaveChanges" alt="Save changes" /> |
|
| 45 | + <b lang-text="js_Save">Save</b><br> |
|
| 46 | + <span lang-text="js_SaveChangesMessage">Save changes to the report for everyone it is shared with</span> |
|
| 47 | +</a></li> |
|
| 48 | +``` |
|
| 49 | + |
|
| 50 | +###Save As |
|
| 51 | + |
|
| 52 | + |
|
| 53 | + |
|
| 54 | +This button allows a user to save the current report with a specific name. |
|
| 55 | + |
|
| 56 | +```html |
|
| 57 | +<li><a href="javascript:void(0)" onclick="javascript:ShowSaveAsDialog();"> |
|
| 58 | + <img class="icon" src="rs.aspx?image=ModernImages.save-as-32.png" lang-alt="js_SaveACopy" alt="Save a copy" /> |
|
| 59 | + <b lang-text="js_SaveAs">Save As</b><br> |
|
| 60 | + <span lang-text="js_SaveACopyMessage">Save a copy with a new name, keeping the original intact</span> |
|
| 61 | +</a></li> |
|
| 62 | + |
|
| 63 | +``` |
|
| 20 | 64 |