API/CodeSamples/Javascript/ReportViewerConfig.md
... ...
@@ -0,0 +1,32 @@
1
+#ReportViewerConfig
2
+
3
+[[_TOC_]]
4
+
5
+##About
6
+
7
+The ``reportviewrconfig`` command is passed through rs.aspx via an [[AjaxRequest|/API/CodeSamples/Javascript/AjaxRequest]]. This returns JSON formatted data related to the Report Viewer page's configuration. It can be used to control whether the current report that is loading is read-only, view-only, or locked. It also returns several settings that are found in [[AdHocSettings|/API/AdHocSettings]] related to the report viewer.
8
+
9
+Here is the Ajax call to use:
10
+
11
+```javascript
12
+AjaxRequest('./rs.aspx', wscmd=reportviewerconfig&wsarg0=' + $(window).width() + '&wsarg1=' + $(window).height(), GotReportViewerConfig, null, 'reportviewerconfig');
13
+```
14
+
15
+Here is a list of the object keys sent back and their default values
16
+
17
+|Key|Value|
18
+|:-:|:---:|
19
+|ReportListUrl|ReportList.aspx|
20
+|ReportDesignerUrl|ReportDesigner.aspx|
21
+|ResponseServerUrl|rs.aspx|
22
+|ReportViewerUrl|ReportViewer.aspx|
23
+|DashboardsUrl|Dashboards.aspx|
24
+|InitialResults|100|
25
+|ReportIsReadOnly|false|
26
+|ReportIsViewOnlyfalse|
27
+|ReportIsLocked|false|
28
+|AllowNewFiltersInReportViewer|true|
29
+|AllowRTFExportFormat|false|
30
+|DateFormatm/d/yy|
31
+|CategoryCharacter|\\|
32
+|UseBulkCsv|false|