b4035d877c624ddc9d986a8e5c56dc7076a42bbf
API/CodeSamples/Javascript/GetRenderedReportSet.md
| ... | ... | @@ -1,7 +1,15 @@ |
| 1 | -#Reset Fusion Cache |
|
| 1 | +#GetRenderedReportSet |
|
| 2 | 2 | |
| 3 | -To update the cache based on your unique business logic (such as daily, during downtime hours) use this method: |
|
| 3 | +[[_TOC_]] |
|
| 4 | 4 | |
| 5 | -``FusionCache.RefreshAllCachedReports();`` |
|
| 5 | +##About |
|
| 6 | 6 | |
| 7 | -This will allow reports to be cached for performance but have data refreshed based on your logic. |
|
| ... | ... | \ No newline at end of file |
| 0 | +The ``GetRenderedReportSet`` command is passed through rs.aspx via an [[AjaxRequest|]]. This returns CSS and HTML that is directly plugged into a container to display the report. This makes it very simple to use the report viewer data in your own website. |
|
| 1 | + |
|
| 2 | +Here is the Ajax call to use: |
|
| 3 | + |
|
| 4 | +```javascript |
|
| 5 | +AjaxRequest('./rs.aspx?', 'wscmd=getrenderedreportset&wsarg0=reportName', GotRenderedReportSet, null, 'getrenderedreportset'); |
|
| 6 | +``` |
|
| 7 | + |
|
| 8 | +The GotRenderedReportSet is a javascript callback that takes two arguments: the returnObj and the id. The returnObj is the raw HTML/CSS data that should get inserted into the container on the report viewer page. The id is the name of the wscmd. In this case, it would be "getrenderedreportset". |
|
| ... | ... | \ No newline at end of file |