You can use RUNOBJECT command and in parameters specify the CU Number you need to run on POS menu setup.
Then program you CU to do what it needs to do.
It's not a CU. What I want to do is set up a button on the tills in my remote sites that will bring them to a citrix login, (which will auto login to my HO) and look at a form which will enable them the see stock levels in all other stores.
Name DataType Subtype Length
FileRec Record File
WSHShell Automation 'Windows Script Host Object Model'.WshShell
MyApp Text 30
MyID Text 30
MyApp := 'Citrix Head Quarter'; //<- it's the name of your citrix App Icon name
MyID := 'oy6frkiy'; //<- this u find in the folder C:\Document & Settings\Username\Application Data\ICAClient file oy6frkiy.idx without idx ;-) in your system the idx file has not the id oy6frkiy, it has a other name ....
//how to find the file whith using system tabe FILE you know. (File.setrange())
//now we run citrix:
if isclear(WShShell) then
create(WSHShell);
wshShell.exec ('C:\Program Files\Citrix\ICA Client\pn.exe /APP ' + MyApp + ' /PNI ' + MyAppID); //if your pn.exe is in this path
To open there ever on logon a specific form, u can add on CU in Function CompanyOpen the call to the form like:
UserSetup.get(Userid);
IF UserSetup."Autorun Form Object ID" <> 0 THEN
FORM.RUN(UserSetup."Autorun Object ID");
Name DataType Subtype Length
FileRec Record File
WSHShell Automation 'Windows Script Host Object Model'.WshShell
MyApp Text 30
MyID Text 30
MyApp := 'Citrix Head Quarter'; //<- it's the name of your citrix App Icon name
MyID := 'oy6frkiy'; //<- this u find in the folder C:\Document & Settings\Username\Application Data\ICAClient file oy6frkiy.idx without idx ;-) in your system the idx file has not the id oy6frkiy, it has a other name ....
//how to find the file whith using system tabe FILE you know. (File.setrange())
//now we run citrix:
if isclear(WShShell) then
create(WSHShell);
wshShell.exec ('C:\Program Files\Citrix\ICA Client\pn.exe /APP ' + MyApp + ' /PNI ' + MyAppID); //if your pn.exe is in this path
To open there ever on logon a specific form, u can add on CU in Function CompanyOpen the call to the form like:
UserSetup.get(Userid);
IF UserSetup."Autorun Form Object ID" <> 0 THEN
FORM.RUN(UserSetup."Autorun Object ID");
Comments
If yes, search the forum for WSH.run or WSH.execute
viewtopic.php?f=5&t=12417
Regards
Then program you CU to do what it needs to do.
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
:-k
mhm, i think he will run an external application like calc.exe or notepad.exe ......
It's not a CU. What I want to do is set up a button on the tills in my remote sites that will bring them to a citrix login, (which will auto login to my HO) and look at a form which will enable them the see stock levels in all other stores.
Try this:
To open there ever on logon a specific form, u can add on CU in Function CompanyOpen the call to the form like:
UserSetup.get(Userid);
IF UserSetup."Autorun Form Object ID" <> 0 THEN
FORM.RUN(UserSetup."Autorun Object ID");
Regards
Thanks Garak,
I'll give that a try.