I was trying to utilize the same to dynamically bind a text field of a row in a table. The row has been dynamically created at runtime (using instance manager - that is working). Here is the code I used inside the click event of the button after the row instance is created:
And the code used in ready form event of the button:
But for some reason the text field is not getting bound. Could you please advise?
I even tried dynamic binding for a single text field but it dint work
Initialize event of root data:
$template.data.resolveNode("relocation).country.bind.ref = "$record.COUNTRY.DATA[*].FIELD";
And the code used in ready form event of data:
The text field country still did not get binded to $record.COUNTRY.DATA[*].FIELD. The binding at design time was put to none also tried normal.
I am not able to figure what is wrong. please let me know if i need to do anything else other than this. thanks.
I am facing a similar issue as Daniel Sattler, the author of the first post in this thread.
However, in contrast to Daniel, I would like to dynamically change the binding variable (bind.ref) of a subform during runtime based on a "change event" triggered by a single/multiple selection in a list box, contained in a different subform.
To summarise: list box A is part of subform A, during completion of the form, the user selects one or more entries from list box A and triggers a "change event". Based on this event a table, part of subform B, is filled with more or less entries, dependent on the users selection in the list box. The rows in this table are determined by the "bind.ref" value of subform B. That means, dependent on the list box selection "bind.ref" will be assigned with a different array, that is also constructed at runtime.
Before asking for hints to a possible solution, I would like to know whether it is possible in general to change the binding of a subform dynamically (so not in the "initialize event" as in Daniel's case), based on a "change event" triggered by a list box selection?