cancel
Showing results for 
Search instead for 
Did you mean: 

Option to Run particular Script Logic/Process Chain in Data Manager Package

bhagyesh_ravange
Active Participant
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member186338
Active Contributor
0 Kudos

Hi Bhagyesh,

Simply use 2 DM packages. You can't manage number of SELECTINPUT prompts in the single DM package.

Vadim

former_member186338
Active Contributor
0 Kudos

P.S. It's possible to provide user selection of script logic files (using COMBOBOX or RADIOBUTTON) but the prompts will be the same...

bhagyesh_ravange
Active Participant
0 Kudos

Hello Vadim,

Thanks for your prompt reply.

It would be helpful, if you guide me through the changes to made in DM package to make script logic selection.

Regards

Bhagyesh Ravange

former_member186338
Active Contributor
0 Kudos

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

bhagyesh_ravange
Active Participant
0 Kudos

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

former_member186338
Active Contributor
0 Kudos

"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