
hi All,
I have below requirement. Please help me if you know how to do it.
On form(form1) I have added new string type field. When I will click on button next to this field (...) (That control will have this image.) When I will click on that control it should open new form(form2) which will look like list page,will have new delete button. User either can add record from this form(form2) or can select existing record. If user select any record that should get saved in my previous form's(form1) new field when I will close second form(form2).
*This post is locked for comments
I have the same question (0)You can pass in the caller object (form1's formRun) through the Args object to form2.
The in closeOK or close method on form2 you could manipulate the records via element.args().caller(), which is form1's formRun class. That should hold reference to your datasources, in which you could change the field value as per changes in form 1 easily.
But I do not understand why are you trying to do it this way. Instead you could just do it from the tables behind. If table2's field is modified and saved, you could change the value from insert or update method of table2 to manipulate the data on table1. Then using the above technique, when closing form2 you could force a datasource.research(true) to reread the values of table1 in form1.