PO session not starting with specific purchase order
Baan: Baan IVc4
In Baan IV C4. I have created a 3gl session as given in attachment.
What i want is when the user clicks on a command button (DsCpushButton) then the purchase order session tdpur4110m000 should start with the selected PO. But, PO session is starting with different order. The code is given below:
if evt.button.return(event) = COMMAND.ORNO then
id = evt.button.id(event)
hold.orno = val(filter.orno)
tdpur040.orno = hold.orno
zoom.to$("tdpur4110m000", Z.SESSION, "", "", 0)
Can anybody find what could be the problem ?
Also, If I want to do the same thing using stpapi.put.field and stpapi.find, then the session tdpur4110m000 starts in background. how can I bring it in foreground. So that when I call the session using zoom.to$, it does not start a separate session.