API/CodeSamples/Javascript/ReportListConfig.md
... ...
@@ -0,0 +1,42 @@
1
+#ReportListConfig
2
+
3
+[[_TOC_]]
4
+
5
+##About
6
+
7
+The ``ReportListConfig`` command sends an [[AjaxRequest|/API/CodeSamples/Javascript/AjaxRequest]] to the server to get the configuration of the report list page. This will return a JSON formatted string to the browser with data related to the report viewer.
8
+
9
+Here is the AJAX call to use:
10
+
11
+```javascript
12
+AjaxRequest('./rs.aspx', 'wscmd=reportlistconfig&wsarg0=' + instant, AcceptConfig, null, 'reportlistconfig');
13
+```
14
+
15
+The AcceptConfig variable is a callback method that takes two arguments: the returnObj and the id. The returnObj is a JSON formatted object that contains the data sources used on the report. Below is an example of the hierarchy of this object.
16
+
17
+* ReportDesignerTarget
18
+* ReportDesignerLink
19
+* DashboardDesignerLink
20
+* ResponseServerUrl
21
+* InstantReportUrl
22
+* SettingsLink
23
+* TimeOut
24
+* UseDefaultDialogs
25
+* ReportLinkTemplate
26
+ * [0]...[n]
27
+* ReportViewTemplate
28
+ * [0]...[n]
29
+* ReportDesignTemplate
30
+ * [0]...[n]
31
+* DashboardLinkTemplate
32
+* DashboardViewTemplate
33
+ * [0]...[n]
34
+* DashboardDesignTemplate
35
+ * [0]...[n]
36
+* ThumbnailsAllowed
37
+* ThumbnailWidth
38
+* ThumbnailHeight
39
+* Operational
40
+* ExpandCategorizedReports
41
+* CategoryCharacter
42
+* AllowDeletingReports
... ...
\ No newline at end of file