☰
Current Page
Main Menu
Home
Home
Editing force-update-results-on-report
Edit
Preview
H1
H2
H3
default
Set your preferred keybinding
default
vim
emacs
markdown
Set this page's format to
AsciiDoc
Creole
Markdown
MediaWiki
Org-mode
Plain Text
RDoc
Textile
Rendering unavailable for
BibTeX
Pod
reStructuredText
Help 1
Help 1
Help 1
Help 2
Help 3
Help 4
Help 5
Help 6
Help 7
Help 8
Autosaved text is available. Click the button to restore it.
Restore Text
#Force "Update Results" On Report Viewer [[_TOC_]] ##Question How Do I Force a User to Click on 'Update Results' Before Showing Any Data? ##Answer There are three ways to get this functionality. Method 1, using filters, is the easiest to implement, but it requires the user to input filter values to work. Method 2 should be employed if you do not wish for the user to input any filter values when hitting Update to execute the report after page load. Method 3 should only be used in versions of Izenda older than 6.9.0.1. ###Method 1 - Filters If you are using filters in the report you want to force this functionality on, you can use the [[Filter tab|http://wiki.izenda.com/Guides/ReportDesign/5.0-Filters-tab#Require-[blank]-Parameters-in-Viewer]] controls to require a user to enter the filter parameters before ever displaying data. ###Method 2 - Modifying _ReportViewer.js_ In the file: Resources\FromDLL\Scripts\ReportViewer.js There is a function called GotReportViewerConfig. Change this: ```javascript if (!initialized) GetRenderedReportSet(false); ``` to this: ```javascript if (!initialized) { initialized = true; GetReportViewerConfig(); FirstLoadInit(); } ``` ###Method 3 - Modifying _ReportViewer-Body.ascx_ **NOTE:** This method should only be used on versions of Izenda older than 6.9.0.1! To ensure a user must click on "Update Results" before showing any report data (regardless if there are filter parameters or not), add the following to the _ReportViewer-Body.ascx_ file in the ``<script>`` tag at the very bottom. This will override a javascript method that normally runs when the page is loaded: ```javascript function GotReportViewerConfig(returnObj, id) { if (id != 'reportviewerconfig' || returnObj == undefined || returnObj == null) return; nrvConfig = returnObj; if (document.getElementById('rlhref') != null) document.getElementById('rlhref').href = nrvConfig.ReportListUrl; urlSettings = new UrlSettings(nrvConfig.ResponseServerUrl); responseServer = new AdHoc.ResponseServer(urlSettings.urlRsPage + '?', 0); responseServerWithDelimeter = responseServer; ChangeTopRecords(nrvConfig.InitialResults, false); if (urlSettings.reportInfo.exportType != null) { responseServer.OpenUrlWithModalDialogNewCustomRsUrl('rs.aspx?output=' + urlSettings.reportInfo.exportType, 'aspnetForm', 'reportFrame', nrvConfig.ResponseServerUrl); }; ApplySecurityOptions(); GetFiltersData(); if (initialized) return; initialized = true; FirstLoadInit(); } ```
Uploading file...
Header
 **This documentation is for the legacy Izenda 6 product. Documentation for the new Izenda 7 product can be found at [[https://www.izenda.com/docs/|https://www.izenda.com/docs/]]**
Sidebar
 --- * [[Izenda 7 Series Documentation|https://www.izenda.com/docs/]] * [[Release Notes]] * [[Upgrade Best Practices|FAQ/Izenda-Update-Best-Practices]] * [[FAQ]] * [[Tutorials]] * [[The Izenda API|/API/AdHocConfig]] * [[The AdHocSettings class|/API/AdHocSettings]] * [Developer Links and Guides](/Guides/Developer-Links-and-Guides) * [[Known Issues]] --- * <a href="http://www.izenda.com" rel="nofollow" target="_blank">Izenda Website</a> * [Product Video](https://www.youtube.com/watch?v=X3-yWFq0w5A) * <a href="http://www.izenda.com/blog" rel="nofollow" target="_blank">Izenda Blog</a> * <a href="http://www.izenda.com/company/" rel="nofollow" target="_blank">About Us</a> * <a href="http://www.izenda.com/contact-us/" rel="nofollow" target="_blank">Contact Us</a> --- * [Guide To Report Design](/Guides/ReportDesign) * [Making Custom Forms Video](http://www.youtube.com/watch?v=5b2axJlgdFs) --- * [[Acknowledgements]]
Edit message:
Cancel