cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Using an generic parameter in Multi Action

Ganjos
Participant
0 Likes
356

Hi team,

I am currently working on a Multi Action in SAP Analytics Cloud that contains four Data Actions from different models.

Is there a way to create a generic parameter (for example, a Year parameter) so that I only need to enter a value such as 2028 once, and then have all the Data Actions within the Multi Action automatically use that same year value?

In other words, I would like to maintain a single parameter at the Multi Action level and pass it to all underlying Data Actions, avoiding the need to enter the year separately for each one.

Has anyone implemented something similar or can confirm whether this is supported?

Muti action:

Ganjos_0-1781800134145.png

Data actions in question with year:

Ganjos_1-1781800170888.png

Ganjos_2-1781800191393.png

Ganjos_3-1781800213606.png

Ganjos_4-1781800236409.png

 

 

 

Thanks in advance.
Ganjos

View Entire Topic
N1kh1l
Active Contributor
0 Likes

@Ganjos 

May be something like below

var dateMember = "[Date].[YQM].&[202601]"; // YQM if your prompt hierrachy is YQM

// Set the parameter value on your Multi Action,  change p_Date1,p_Date2,p_Date3 and p_Date4 with your date parameters name.
MultiAction_1.setParameterValue("p_Date1", dateMember);
MultiAction_1.setParameterValue("p_Date2", dateMember);
MultiAction_1.setParameterValue("p_Date3", dateMember);
MultiAction_1.setParameterValue("p_Date4", dateMember);

// Execute the Multi Action
MultiAction_1.execute();
Ganjos
Participant
0 Likes

Hi @N1kh1l,

Thanks for your answer. I’m following what you suggested, but the script doesn’t recognize the parameters.

Ganjos_1-1782128338625.png

 

Ganjos_0-1782128275178.png

They are exactly the same as in the multi-action.

Thanks in advance,
Ganjos