<script src="https://cdn.flexmonster.com/flexmonster.js"></script>
<div>
<p>
Click the <b>Set Report Filter</b> button to add the <code>Color</code> field
to the report filters and apply the selection filter to the field.
</p>
<p>
Click the <b>Get Report Filter</b> button to output info about the fields
selected for the report filters under the component.
</p>
<p>
Click the <b>Clear Report Filter</b> button to remove all fields from the
report filters.
</p>
</div>
<button onclick="setReportFilter()">Set report filter</button>
<button onclick="printReportFilter()">Get report filter</button>
<button onclick="clearFilter()">Clear Report Filter</button>
<div id="pivot-container"></div>
<div class="output" id="output">Output will appear here</div>