We are trying to display data in a form-list field using section-iterate. Data is being displayed correctly. However, once updating fields, the list used in the section-iterator is not being updated.
Sample code:
<form-single name=“editTest” transition=“editOneTest”>
<auto-fields-entity entity-name="test.Test” field-type="edit"/>
<field name="testDetails"><default-field>
<section-iterate name="TestDetailSection" list="testDetailList" entry="testDetail" >
<condition>
<compare field="testDetail.testId" operator="equals" to-field="testId"/>
</condition>
<widgets>
<field name="hours">
<default-field>
<text-find default-operator="equals" hide-options="true" default-value="${testDetail.hours}" size="5" />
</default-field>
</field>
</widgets>
</section-iterate>
</default-field></field>
</form-single>
Notes:
We tried to declare list like and add the hours edited in the new list. It didn't work. I tried to create a script inside of section-iterate to edit the testDetailList and didn't work.
Kindly, assit us to solve this issue.