on 12-29-2014 7:35 AM
Hello Experts,
I need to built Data manager package wherein user have the option to run particular script logic.
At present I have 2 script logic, also in both these script logic there is need to pass on variable from the Data manager package to script logic. Hence when I select particular script logic a different dialog box should appear to pass on variable.
For Example: If I select 1 option then a prompt should appear wherein I need to provide one variable (i.e select input). If I select 2 option then a prompt should appear wherein I need to provide two variable (i.e select input).
Any help on this..
Regards
Bhagyesh Ravange
Hi Bhagyesh,
Simply use 2 DM packages. You can't manage number of SELECTINPUT prompts in the single DM package.
Vadim
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Assuming that the script is based on /CPMB/DEFAULT_FORMULAS_LOGIC chain you have the line:
TASK(/CPMB/DEFAULT_FORMULAS_LOGIC,LOGICFILENAME,XXXX.LGF)
You can change it to be:
TASK(/CPMB/DEFAULT_FORMULAS_LOGIC,LOGICFILENAME,%SCRNAME%.LGF)
%SCRNAME% variable can be filled like:
PROMPT(COMBOBOX,%SCRNAME%,"Select Script:",1,SCRIPT1,{SCRIPT1,SCRIPT2})
or
PROMPT(RADIOBUTTON,%SCRNAME%,"Select Script:",SCRIPT1,{"Use Script 1","Use Script 2"},{"SCRIPT1","SCRIPT2"})
Vadim
Hello Vadim,
I have below two question.
1) I need to create one TASK(/CPMB/DEFAULT_FORMULAS_LOGIC,LOGICFILENAME,%SCRNAME%.LGF) and not two for each script logic right?
2) For Example: If script logic name is ABC.LGF and XYZ.LGF then prompt would be like this PROMPT(RADIOBUTTON,%SCRNAME%,"Select Script:",SCRIPT1,{"ABC","XYZ"},{"SCRIPT1","SCRIPT2"})
Regards
Bhagyesh Ravange
"I need to create one TASK(/CPMB/DEFAULT_FORMULAS_LOGIC,LOGICFILENAME,%SCRNAME%.LGF) and not two for each script logic right?" - correct!
"For Example: If script logic name is ABC.LGF and XYZ.LGF then prompt would be like this PROMPT(RADIOBUTTON,%SCRNAME%,"Select Script:",SCRIPT1,{"ABC","XYZ"},{"SCRIPT1","SCRIPT2"})" - incorrect, have to be:
PROMPT(RADIOBUTTON,%SCRNAME%,"Select Script:",ABC,{"Some description for ABC","Some description for XYZ"},{"ABC","XYZ"})
ABC - will be default selection in this prompt.
Just try...
Vadim
User | Count |
---|---|
15 | |
3 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.