API/CodeSamples/Javascript/CRSDataSources.md
... ...
@@ -12,14 +12,39 @@ AjaxRequest('./rs.aspx', 'wscmd=crsdatasources', GotDatasourcesList, null, 'crsd
12 12
13 13
The GotDataSourcesList 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.
14 14
15
-* returnObj
16
- * SelectionsList
17
- * [0]...[n]
18
- * DataType
19
- * DbName
20
- * Fields
21
- * FriendlyName
22
- * IsStoredProc
15
+* SelectionsList
16
+ * [0]...[n]
17
+ * Fields
18
+ * [0]...[n]
19
+ * Selected
20
+ * Description
21
+ * Total
22
+ * VG
23
+ * Format
24
+ * FilterOperator
25
+ * FormatNames
26
+ * [0]...[n]
27
+ * FormatValues
28
+ * [0]...[n]
29
+ * FilterOperatorNames
30
+ * [0]...[n]
31
+ * FilterOperatorValues
32
+ * [0]...[n]
33
+ * FunctionNames
34
+ * [0]...[n]
35
+ * FunctionValues
36
+ * [0]...[n]
37
+ * LabelJ
38
+ * ValueJ
39
+ * Hidden
40
+ * FriendlyName
41
+ * DbName (field)
42
+ * DataType
43
+ * IsStoredProc
44
+ * FriendlyName
45
+ * DbName (datasource)
46
+ * DataType
47
+ * CanSaveReport
23 48
24 49
So if you want to use the returnObj, you could use the javascript standard ``returnObj["SelectionsList"][0].DbName`` statement.
25 50