My scenario is as follows: In PAG42 (Sales Order) in the field for customer name, I open PAG5052 (contact list) via RUNMODAL, select a contact and if the contact has a relation with a customer, I use this customer within the sales order. So far, so good. Everything works fine.
I created a new page action which should do something with this contact before passing it back to the sales order. I wonder how to tell NAV to close the contact list (which runs modal) and use the selected rec while pressing this new button. (Something like PAGE.SETACTION(LookupOK) or so )
Help is highly appreciated.
PS.: I did a workaround with an Automation (Windows Script Host Object Model'.WshShell) and "SendKeys(ENTER)" OnAction of this PageAction, but I am not satisfied with this solution.