Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik and ServiceNow Partner to Bring Trusted Enterprise Context into AI-Powered Workflows. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
VaishnaviMogal2
Contributor III
Contributor III

variables with alternate state

Hi,

I have two tables one in alternate state 'state1' and one is in default state. I have created a variable to store selected vin value from alternate state table .

var1= GetFieldSelections({'state1'} vin) 

print this value in default table using

$(var1)

but this giving me result as dash (-). 

How can i get the selected vin value in default state or any other state table. any suggestions please reply.

Thanks.

 

Labels (4)
1 Solution

Accepted Solutions
tresB
Champion III
Champion III

This function has a different syntax with parameters. Try like:
GetFieldSelections( vin,',',100, 'state1') 

View solution in original post

3 Replies
tresB
Champion III
Champion III

This function has a different syntax with parameters. Try like:
GetFieldSelections( vin,',',100, 'state1') 

VaishnaviMogal2
Contributor III
Contributor III
Author

@tresB  It Worked! thanks.

I just want to ask 

only({state1} vin)

is also giving same result. could you please comment on both solution to understand better.

Thanks

Vaishnavi,

 

tresB
Champion III
Champion III

@VaishnaviMogal2 if you select more than one then only() returns null, whereas with the getfieldselections() you would get multiple values separated by delimiter that you can treat accordingly as per your requirement