<script src="https://cdn.flexmonster.com/flexmonster.js"></script>
<div>
<h2>How to sync filters for multiple Flexmonster instances</h2>
<p>
In this example, we sync filters for two Flexmonster instances. These
instances are subscribed to the
<a href="https://www.flexmonster.com/api/reportchange/" target="_blank"
>reportchange</a> event, which is triggered when you change the report.
</p>
<p>
So, when you filter a field, the <code>syncFilters()</code> function is
called. It uses the
<a href="https://www.flexmonster.com/api/getfilter/" target="_blank"
>getFilter()</a> and
<a href="https://www.flexmonster.com/api/setfilter/" target="_blank"
>setFilter()</a> methods to pass filters from one Flexmonster instance
to another (lines 56-65 in the JavaScript box).
</p>
<p>
Try setting filters in any Flexmonster instance and see how they are
synchronized.
</p>
</div>
<div id="pivot-container1" style="margin-bottom: 12px"></div>
<div id="pivot-container2"></div>