PASS process with conditional user input parameters
Posted: Thu May 30, 2024 9:21 am
I have a process called from PASS with three input parameters, where the user selects different versions of the TB:
I'd like to be able to look up to the model environment cube then restrict the parameters on the first process according to what year it is. If the model environment is Current Year, the user is only asked for
Is there any way of specifying that "ParamValue", "ParamValue1" and "ParamValue2" need to be user input?
Or are my only two options to
At the minute the first process asks for all three parameters then only uses the relevant ones - in theory. But it feels like the chances of something going wrong are too high (i.e. the wrong year's data getting overwritten), and I can guarantee that the users will get stressed out by being asked to provide extra information, even if I tell them it's optional.
- Select current year budget version
Select current year actuals version
Select next year budget version
I'd like to be able to look up to the model environment cube then restrict the parameters on the first process according to what year it is. If the model environment is Current Year, the user is only asked for
- Select current year budget version
Select current year actuals version
- Select next year budget version
Code: Select all
IF(ME@='Current Year');
ExecuteProcess( 'CurrentYearProcess', 'CY Budget', «ParamValue», 'CY Actuals', «ParamValue1» );
Elseif(ME@='Next Year');
ExecuteProcess( 'NextYearProcess', 'NY Budget', «ParamValue2» );
Endif;
Or are my only two options to
- have two different buttons in PASS calling two different copies of the process
- use a user input control cube where they've selected the budget versions in advance?
At the minute the first process asks for all three parameters then only uses the relevant ones - in theory. But it feels like the chances of something going wrong are too high (i.e. the wrong year's data getting overwritten), and I can guarantee that the users will get stressed out by being asked to provide extra information, even if I tell them it's optional.