I have a row on a form that has a button to remove the row next to it. On the click I have the following:
Company.Page1.ListOfRecords.RecordsTable.Row2.instanceManager.removeInstance(this.parent.parent.index);
Each row goes into a block in the schema, and when a new row is generated, a new block appears. When a row is deleted, that block should disappear entirely. However it is keeping parts of the xml block.
For instance, normally the block would be like below, and would have whatever values each column has from the form inserted.
<row title>
<column1/>
<column2/>
<column3/>
<column4/>
</row title>
When removing the row however, I will have random columns left in an incomplete block:
<row title>
<column3/>
<column4/>
</row title>
This causes my process to interpret there being another row in the XML to insert values into a database based off a SQL statement. This insert fails because it is missing some values. It shouldn't have that partial block there at all.