API/CodeSamples/Javascript/GetPivotGuiData.md
... ...
@@ -0,0 +1,51 @@
1
+#GetPivotGuiData
2
+
3
+[[_TOC_]]
4
+
5
+##About
6
+
7
+The ``GetPivotGuiData`` command is passed through rs.aspx via an [[AjaxRequest|/API/CodeSamples/Javscript/AjaxRequest]]. This returns JSON formatted data related to displaying pivoting information on the ReportViewer.
8
+
9
+Here is the AJAX call to use:
10
+
11
+```
12
+AjaxRequest('./rs.aspx', 'wscmd=reportviewerconfig&wsarg0=' + jq$(window).width() + '&wsarg1=' + jq$(window).height(), GotReportViewerConfig, null, 'reportviewerconfig');
13
+```
14
+
15
+Here is the hierarchy of object keys sent back:
16
+
17
+* SelectionsList
18
+ * [0]...[n]
19
+ * Fields
20
+ * [0]...[n]
21
+ * Selected
22
+ * Description
23
+ * Total
24
+ * VG
25
+ * Format
26
+ * FilterOperator
27
+ * FormatNames
28
+ * [0]...[n]
29
+ * FormatValues
30
+ * [0]...[n]
31
+ * FilterOperatorNames
32
+ * [0]...[n]
33
+ * FilterOperatorValues
34
+ * [0]...[n]
35
+ * FunctionNames
36
+ * [0]...[n]
37
+ * FunctionValues
38
+ * [0]...[n]
39
+ * LabelJ
40
+ * ValueJ
41
+ * Hidden
42
+ * FriendlyName
43
+ * DbName (field)
44
+ * DataType
45
+ * IsStoredProc
46
+ * FriendlyName
47
+ * DbName (datasource)
48
+ * DataType
49
+ * CanSaveReport
50
+
51
+GotPivotGuiData is a callback method that takes two parameters. The first is the returnObj and the second is the id of the called method (getpivotguidata).
... ...
\ No newline at end of file