Dynamically change binding of field
I am attempting to develop a form in which the binding of the fields is not yet known at design time.
What I am trying to do is the following:
In the "initialize" event of the form, I have typed the following:
HEADER.FIELD.bind.ref = "$record.DATA_IN.SUBFORM.DATA[1].NAME";
HEADER.FIELD.bind.match = "dataRef";
"HEADER" is a subform with a text field called "FIELD" in it. What happens is: plain nothing - although there is data in the specified node, the fields remains empty.
If I comment out the two lines and put the "$record.DATA_IN.SUBFORM.DATA[1].NAME" directly to the "binding" property, it works just fine. Setting the default binding to "normal" and trying to set it via code does not...
Any hints? Am I missing some important step?
Thanks
Daniel Sattler