cancel
Showing results for 
Search instead for 
Did you mean: 

Get variable value before prompt?

vitran23
Active Participant
0 Kudos

Is there a way to get a variable's value before the "prompt?"  I was looking at the "variable initialization" event but don't see a getVariableText() method for the datasource.  My goal is to default the variable value if the user doesn't have a default / personalized value set so they can bypass the initial prompt to make it easier for mobile users to interact with the report.

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member197751
Participant
0 Kudos

Set Default value, by using setvariableValueExt() or setvariablevalue(), with default values.

vitran23
Active Participant
0 Kudos

I don't want to set the variable unless I know the user "does not" have any personalization or default values filled in.

So if the user sets a personalization value for the variable to be XYZ, I don't want to overwrite it with ABC which is why I'm trying to see if there is a way to get what's in the variable before the prompt gets loaded.