I'm trying to open the SOP_Inquiry screen to a document the way GP does it, via the OPEN procedure of the SOP_Inquiry form.
I found this by using the script debugger and opening a historical document (Fabrikam):
Looking up the parameter listing I find:
Now obviously the first two are rather self-explanatory: the document type and number.
The third appears to be telling the window where to pull the information from the WORK tables (1) or the HISTORY tables (2).
The other 3 parameters are what bother me. I'm not sure where to pull their values from. I could probably get it to work using the values supplied from the script logging session, but I don't know if that will cause errors at some point.
Where might I get the values for those 3 parameters or can I use the hard coded values?
Thanks.
I found this by using the script debugger and opening a historical document (Fabrikam):
Code:
'OPEN of form SOP_Inquiry', 2, "ORDST2219", 2, 11, 1, 1102
Looking up the parameter listing I find:
in integer IN_Type;
in 'SOP Number' IN_Doc;
in integer IN_Which_File;
in integer IN_Module;
in 'Currency View' IN_nCyView;
in 'Caller ID' IN_nCallerID;
Now obviously the first two are rather self-explanatory: the document type and number.
The third appears to be telling the window where to pull the information from the WORK tables (1) or the HISTORY tables (2).
The other 3 parameters are what bother me. I'm not sure where to pull their values from. I could probably get it to work using the values supplied from the script logging session, but I don't know if that will cause errors at some point.
Where might I get the values for those 3 parameters or can I use the hard coded values?
Thanks.