Skip to content
+1-888-319-3663

COMMUNITY FORUM

Is there a function that can be used to Open an Extender window via Dex?

Arthur asked 2 years ago
Is there a function that can be used to Open an Extender window via Dex?
Arthur replied 2 years ago

so I found this call ‘Open_UD_Window_Number’, 16;

But how do I get the window number? Where does the 16 come from?

Answers
Patrick Roth Staff answered 2 years ago
The 16 comes from the caller – Open_UD_Window_16.  The “16” passed that you see isn’t a coincidence.
The script of Open_UD_Window_16 is merely:
call Open_UD_Window_Number, 16;
The 16 is the “window number” and the Open_UD_Window_16 is just the trigger handling script of the form trigger registration process – it was the 16th extender window registered out of however many windows you have.
The table EXT_User_Form_Triggers (EXT80200) holds the “window number” for each record registered – so to get that window number, you’d look in that table at the rest of the key fields to find it.  Then you could call Open_UD_Window_Number directly passing in that window number as the param.
But of course Extender expects the GP window registered against to be open so if you do this w/o that GP window open (which you surely could with code) the Extender window will give a polite error or else Illegal Address since this shouldn’t be possible to have happen.  But either way the window won’t display properly.
Arthur replied 2 years ago

thanks, I ended up using something like this, works well
DECLARE @CMPANYID INT,
@USERID VARCHAR(15),
@Extender_Type INT,
@Extender_ID VARCHAR(15)

SELECT TOP 1
Window_Number
FROM DYNAMICS..EXT80200
WHERE Extender_ID = @Extender_ID
AND Extender_Type = @Extender_Type
AND USERID = @USERID
AND CMPANYID = @CMPANYID


If you would like to submit an answer or comment, please sign in to the eOne portal.