CurrForm.SETSELECTIONFILTER(Rec); IF Rec.FINDSET THEN DELETEALL; RESET;The problem is the following: When i delete the record that was dispalyed in the first form and i close the lookup form the record that was deleted still displayed and that's not what i want. It have to be deleted and the user can't see it again.
Comments
1) You don't use properties to call the lookup and write code in the OnPush trigger and run the form using runmodal. When closing the lookup form you call the function I said. So you write the CurrForm.update(false) at the end of OnPush.
2) You write code on Ontimer that check if the record exists and if not it call currform.update(false) (I don't like this one.... but it's possible I think)
because my calling form is already opened and running when I close the lookup form...
Anyone has other solutions please?
OnPush:
currRecord := rec;
if form.runmodal(lookupformID,currRecord) = action::lookupok then
rec := currRecord;
currrform.update(false);
Surely, the calling form is alive. It updates when closing the lookupform, however, but this make sense.... or not?