#CRSDataSources
##About
AjaxRequest('./rs.aspx', 'wscmd=crsdatasources', GotDatasourcesList, null, 'crsdatasources');
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.
- returnObj
- SelectionsList
- [0]…[n]
- DataType
- DbName
- Fields
- FriendlyName
- IsStoredProc
- [0]…[n]
- SelectionsList
So if you want to use the returnObj, you could use the javascript standard returnObj["SelectionsList"][0].DbName statement.
The id object is the name of the function (crsdadtasources).
