70d39a97e320cd66b176cdd90db7de6a0f5ebf95
API/CodeSamples/Javascript/GetFiltersData.md
| ... | ... | @@ -0,0 +1,26 @@ |
| 1 | +#GetFiltersData |
|
| 2 | + |
|
| 3 | +[[_TOC_]] |
|
| 4 | + |
|
| 5 | +##About |
|
| 6 | + |
|
| 7 | +The ``GetFiltersData`` command is passed through rs.aspx via an [[AjaxRequest|/API/CodeSamples/Javascript/AjaxRequest]]. This returns JSON formatted data related to the filters included in the reportSet. It can be used to identify and display filter information on the web page. |
|
| 8 | + |
|
| 9 | +Here is the AJAX call to use: |
|
| 10 | + |
|
| 11 | +```csharp |
|
| 12 | +AjaxRequest('./rs.aspx', 'wscmd=getfiltersdata', GotFiltersData, null, 'getfiltersdata'); |
|
| 13 | + |
|
| 14 | +Here is the hierarchy of the object keys sent back: |
|
| 15 | + |
|
| 16 | +* returnObj |
|
| 17 | + * Filters |
|
| 18 | + * [0]...[n] |
|
| 19 | + * Description |
|
| 20 | + * ControlType |
|
| 21 | + * Type |
|
| 22 | + * Value |
|
| 23 | + * Values |
|
| 24 | + * [0]...[n] |
|
| 25 | + |
|
| 26 | +GotFiltersData is a callback method that takes two parameters. The first is the returnObj and the second is the id of the called method (getfiltersdata). |
|
| ... | ... | \ No newline at end of file |