cancel
Showing results for 
Search instead for 
Did you mean: 

Filter Data Manager Variable for user Selection

former_member597393
Participant
0 Kudos
410

Hi Experts,

I am selecting the time from Data Manager, in advanced script I have this statement :

PROMPT(SELECT,%TIMEID%,,"Selection 1","%TIME_DIM%")

My variable passed to the badi and script logic with the following value :

TIMEID =/.../..FROM.TMP@@@SAVE@@@@@@EXPAND@@@|DIMENSION:TIME|2021.01,2021.02

I want to pass to the script logic only this value 2021.01,2021.02 because I am using it in further calculation in script logic.

How I can filter or trim this variable string in script logic ? or any other alternative in the advanced script of DM ?

Regards

Mohamed

View Entire Topic
former_member186338
Active Contributor
0 Kudos

In DM advanced script you can use %SELECTION% or some user defined variable like %TIMEID%

%SELECTION% is passed as %XXX_SET% to script logic.

To pass %TIMEID% you can't use REPLACEPARAM, you have to use MEMBERSELECTION in TASK with the same syntax.

Result of MEMBERSELECTION is $xxx$ variable in script logic.

former_member597393
Participant
0 Kudos

Thanks Vadim,

using standard chain and MEMBERSELECTION , I am able to pass user selection to variable.