Defect/Issue Description:
Trying to emptyData (via JS or action) of a UI model that is linked to a table produces: ‘RangeError: Maximum call stack size exceeded’.
Also, the table has to be on not the first page.
Environment:
- API Version: v2
- Release: Boston
- Release version: 13.0.17
- Platform: Salesforce
Action Performed:
- Create UI Model (with 1 field)
- Create a table where the UI Model is the source
- Show 10 rows of data per page
- Add 11 rows of data to the model
- Go to 2nd page of the table
- emptyData() on the model via JS, or via an action.
Expected Result:
The data should be removed from the model and the table should display no data.
Actual Result
‘RangeError: Maximum call stack size exceeded’ produced in console.
Additional Resources:
<skuid__page unsavedchangeswarning="yes" personalizationmode="server" showsidebar="true" showheader="true">
<models>
<model id="UIModel" limit="20" query="true" datasource="Ui-Only" createrowifnonefound="false">
<fields>
<field id="Test1" displaytype="TEXT" length="255"/>
</fields>
<conditions/>
<actions/>
</model>
</models>
<components>
<skuid__table allowColumnFreezing="dragDrop" model="UIModel" uniqueid="sk-2WQk-4576" mode="read" pageSize="10">
<fields>
<field id="Test1" uniqueid="fi-2WQq-6928"/>
</fields>
<filtering enableSearch="false"/>
<actions>
<action type="multi" label="Add">
<actions>
<action type="createRow" model="UIModel" appendorprepend="prepend" defaultmodefornewitems="edit" affectedrows="all"/>
</actions>
</action>
<action type="multi" label="Empty">
<actions>
<action type="emptyModelData">
<models>
<model>UIModel</model>
</models>
</action>
</actions>
</action>
</actions>
<rowActions/>
<massActions/>
<exportProperties useTableColumns="true"/>
<sorting enable="false"/>
<styles>
<spacing/>
</styles>
<renderConditions logictype="and"/>
<styleVariantConditions/>
</skuid__table>
</components>
<resources>
<labels/>
<javascript/>
<css/>
<actionsequences/>
</resources>
<styles>
<styleitem type="background" bgtype="none"/>
</styles>
</skuid__page>
Best,
Lukas