<script src="https://cdn.flexmonster.com/flexmonster.js"></script>
<div>
<p>
Click the <b>Run query</b> button to trigger the
<code>runningquery</code> event.
</p>
<p>
If running the query was successful, the <code>querycomplete</code> event is
triggered and outputs the message under the component.
</p>
<p>
If there are any issues when running the data query, the
<code>queryerror</code> event is triggered and outputs the error message
under the component.
</p>
</div>
<button onclick="runQuery()">Run query</button>
<div id="pivot-container">The component will appear here</div>
<div class="output" id="output">Output will appear here</div>