- Mark as New
- Follow
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
I have a list of items displayed in a table with just an ID, name and 'Edit' button and a subform with details about the selected item. The backing schema has a 'selectedItem' place-holder as well as a list of items (the 'streams' node in the text below). The script for the 'Edit' button successfully extracts the index of the selected row but I'm having trouble getting the detail data for that item to display in the edit subform. The easiest approach would seem to be to set the subform binding to the selected row and remerge the data DOM and form DOM but that doesn't seem to do anything. The .XDP file is coded to bind the subform as follows:
<bind match="dataRef" ref="$.streams.waterbody[0]"/>
My script assigns the new binding value and calls remerge() as follows:
subform.bind.ref = "$.streams.waterbody[" + rowIndex + "]";
xfa.form.remerge();
Views
Replies
Total Likes