cancel
Showing results for 
Search instead for 
Did you mean: 

Setting Year parameter to Data Action based on input control MMYYYY

mayiya
Participant
0 Kudos

Hi experts. 

In my story I have a Forecast layout table with an calculation input control for cut-over date. 

mayiya_0-1710199876083.png

I have a Data_Action_1 which needs as parameter: 1.The result of the calculation input control . Why input control is not shown on selection options?

mayiya_1-1710200218511.png

2. Year. This should be the same year as for calculation input control. For example if calculation input control is: Aug, 2023, then Year= 2023; if calculation input control is: Nov, 2024 , then Year=2024. 

Actually,  Data_Action_1 shows prompts for: calculation input control (Fecha Inicio Proyección) and year (Año Proyeccion). 

mayiya_2-1710200493106.png

 

How can I pass year from calculation input control (Fecha Inicio Proyeccion) to Year parameter  (Año Proyeccion) ?

 

Thanks , please help!!

 

 

 

Accepted Solutions (0)

Answers (1)

Answers (1)

N1kh1l
Active Contributor
0 Kudos

@mayiya 

Fecha Inicio Proyección This one can be set using the Input control. make sure the parameter is set as below

N1kh1l_0-1710218687945.png

Also the formula input control should return Date format of SAC which is YYYYMM. 

N1kh1l_1-1710218978589.png

 

For Año Proyeccion you can set it with an input control which returns YYYY

Alternatively you can use scripting to set the parameter values on a button click and then set it to execute. In scripting you have more control to manipulate the string parameters.

Br.

Nikhil

 

mayiya
Participant
0 Kudos

Hi Nikhil.

Fecha Inicio Proyeccion is already configured as you said: 

mayiya_0-1710250025366.png

But in the story the calculation input control is not recognized. Maybe because it is a calculation input control? T his calculation input control is created when using forecast layout table.

mayiya_1-1710250153666.png

mayiya_2-1710250251168.png

As for the Year parameter it is configured as:

mayiya_3-1710250486490.png

I need to use the year parameter because on my data action I need the 12 months of the year, I tried using MEMBERSET [d/Date]= FIRST(%FechaInicioProyeccion%) to LAST(%FechaInicioProyeccion%), but it gives me the error of "Not viable alternative at input 'FIRST' ".  

I'm searching for blogs/info about passing parameter to data action by scripting, but without success. It gives me the error:

mayiya_0-1710252748366.png

 

 

 

 

 

 

 

 

 

mayiya
Participant
0 Kudos
Please any advice or workaround for these? Actually on every data action the Fecha Inicio Proyeccion and Year is as prompt, but this parameters are used in all data actions, so is very bad that users enters the same parameters on story.