Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dex - Parameter Question (OPEN - SOP_Inquiry) 1

Status
Not open for further replies.

Borvik

Programmer
Jan 2, 2002
1,392
US
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):
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.
 
Here is an example from the SOP_Document_Detail_Entry Zoom Buttons[5]_CHG script

Code:
if 'Posted' of file SOP_Master_Number_TEMP then
	{history}
	set l_current_status to 2;
else
	{work}
	set l_current_status to 1;
end if;

{Zoom to Inquiry}
call OPEN of form SOP_Inquiry, 
	SOPTypeToInt('SOP Type' of window Master_Scroll), 
	'SOP Number' of window Master_Scroll, 
	l_current_status, SOP,
	CURRENCYVIEW_FUNCTIONAL, WINID_SOP_SOPDOCDETAILENTRY;

Hope this helps.

David Musgrave [MSFT]
Senior Development Consultant
Escalation Engineer - Great Plains
Microsoft Dynamics Support - Asia Pacific

Microsoft Dynamics (formerly Microsoft Business Solutions)

Any views contained within are my personal views and
not necessarily Microsoft Business Solutions policy.
This posting is provided "AS IS" with no warranties,
and confers no rights.
 
Yes that does, it looks like those last 3 parameters are constants.

Cheers, Dave.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top