Hello,
I have been struggling to get this to work for quite some time and am starting to go crazy! I have created a button on the Invoice History Inquiry which opens up the Sales Order UI, but I want to pass through a parameter so that the Sales Order task opens up with an already populated panel. Below is my current working code that just opens the task:
oSOEnt = 0
oSOEnt = oSession.GetObject("SO_SalesOrder_UI")
if oSOEnt <> 0 then
Set oSOEnt = oSession.AsObject(oSOEnt)
retVal = oSOEnt.Process()
End if
Here is what I have tried in order to open the task with the sales order number populated:
'Attempt 1
oEntry = 0
oSOEnt = 0
oSOEnt = oSession.GetObject("SO_SalesOrder_UI")
oEntry = oSession.GetObject("SalesOrderNo$")
if oSOEnt <> 0 then
Set oSOEnt = oSession.AsObject(oSOEnt)
retVal = oSOEnt.Process('oEntry')
End if
'Attempt 2
entry = 0
oSOEnt = 0
oSOEnt = oSession.GetObject("SO_SalesOrder_UI")
retVal = oBusObj.GetValue("SalesOrderNo$", entry)
if oSOEnt <> 0 then
Set oSOEnt = oSession.AsObject(oSOEnt)
retVal = oSOEnt.Process('entry')
End if
I have tried with all variations of quotation marks (Double, Single, None) and just can't seem to get it right. Any help would be greatly appreciated!