>Hi,
>
>I do have a problem here, this is my scenario,
>
>I have 2 forms, say I have the display of list of employees in form 1 and then on form 2 I will make changes on the same dataset displayed on form 1. so when i load form 2, it is just on top of form 1 when i close form 2 i want to display the changes i have applied. is there a way other than reloading the form from the very start i opened form 2?
>
>Please give me insights and possible solutions for this, this i think i miss though possible with formset, its not like vb where i'm in form 2 i can call a form1.property? or i am just too young in programming hehehe....
>
>thanks...
It depends on what exactly you're using to display information in form 1. If you're using a local view, you would need to issue requery. If CursorAdapter, then CursorRefresh, if buffered table, then refresh.
From form 2 you would need to send a flag to refresh data. There are multiple ways to achieve this functionality. One of them would be passing a form reference to Form1, e.g.
do Form2 with thisform
---------------------------
Form2 Init
lparameters toCallingForm
thisform.oCallingForm = toCallingForm && Save the reference
---------------------
This way you have a reference to your form1 in form2 and can set any flags or even call some methods of form1 from form2 when you saved the changes.
If it's not broken, fix it until it is.
My Blog