i searched the forum and could not find anything on this - please redirect me if i missed something.
on a button, i can set the properties for PushAction = RunSystem and RunCommand = path to an executable i'd like to run.
now, is is possible to instead put business logic behind the button (on the OnPush trigger for instance), so that one could do something like:
IF Company = US THEN call usa.exe.
IF company = DK THEN call denmark.exe
etc. etc.
essentially, the form would have a single button that calls a specific external application depending on which Naivision company the user is logged into.
i'm looking at the CAL help files but i do not see any commands to handle this - just references to the button properties. can anyone give me a hint on this? do i need to create a global of type file, and then somehow do a File.RUN or something?
thanks!
kind of fell into this...
Comments
languageidentifiers are fixed integers...find'em on google
p.s.: never used but I think this works...try it...
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog
Here is an example of how you can use the SHELL function:
SHELL('c:\joe\myprog.exe', 'arg1', 'arg2');
all of our companies are operated in English - so i think i will lean towards following the "SHELL" recommendation. thanks.
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog
i got a pop-up saying "this is the first time you are calling
file = generic.exe
parameter =
and it may not be trusted. proceed?" (paraphrased)
this only happened the first time i ran this - wondering if this would pop up for every new user/machine to make the call or just this first time that i tried it?
i apologize for not searching the forum for SHELL after being lead down that path. it is often too easy to continue the conversation in this thread instead of going back out to look for pre-existing answers.
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!