Is there any other method rather than using the following code, for populating and binding the data at the same time:-
this.rawValue=xfa.resolveNode("$record.aaa.bbb").value;
The other way to bind data to the fields could be:-
Form.MyForm.bind.match="dataRef";
Form.MyForm.bind.ref="$record.aaa.bbb";
But, this code is not working. It's written at initialize event.
Even if have written the following at form:ready event, with this:-
$form.remerge();
What is the significance of this code? If this is not the right code, please describe any other javascript code/method.
In anyway, I want to bind the data with field as we do in binding tab in AEM Designer. By two way binding I mean that on changing the record the value for field gets updated and also the vice-versa should happen, as it happens when binding is done through binding tab.