FAQ/Questions/Using-ReportParts.md
... ...
@@ -43,6 +43,10 @@ The Report string should be the complete name of the report including the catego
43 43
* Gauges
44 44
* Map
45 45
46
+Filters can be added in the div as below for the report part. These are numbered based on position number in the report. This filter functionality is limited. At this time it will not support between date filter operators.
47
+Filters are added using the following format data-filter1="value" data-filter2="value"
48
+Multiple values can be entered using a comma separated list as data-filter1="value1,value2"
49
+
46 50
###HTML example
47 51
48 52
You can also insert ReportParts into a pure HTML page and display it using javascript
... ...
@@ -61,7 +65,7 @@ Then you can add HTML like the following to use a ReportPart.
61 65
<body>
62 66
<div style="margin:5px; padding:10px; border: 1px solid gray; background-color: white;">
63 67
<h1>Sales Chart</h1>
64
- <div class="report-part" data-report="Sales" data-part="chart"></div>
68
+ <div class="report-part" data-report="Sales" data-part="chart" data-filter1="Country"></div>
65 69
<h1>Finance Chart</h1>
66 70
<div class="report-part" data-report="Finance" data-part="chart"></div>
67 71
<h1>Accounting Details</h1>