<script src="https://cdn.flexmonster.com/flexmonster.js"></script>
<div>
<h2>How to update only some part of JSON data without clearing the report</h2>
<p>
The <a href="https://www.flexmonster.com/api/updatedata/" target="_blank">updateData()</a> method allows updating the data whereas other report configurations are not changed.
</p>
<p>
For JSON, <code>updateData()</code> supports partial data update. This example shows how to add, edit, and delete records in your dataset.
</p>
<p>
<a href="https://www.flexmonster.com/api/updatedata/#!example-4" target="_blank">Visit our docs to learn more about partial data update</a>.
</p>
</div>
<button onclick="addRecord()">Add one record</button>
<button onclick="editRecords()">Edit two records</button>
<button onclick="deleteRecord()">Delete one record</button>
<div id="pivot-container"></div>