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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
RMotta2408
Creator II
Creator II

Assign a value in a record to a variable

Hi there,

I have a list that I have sorted with tSortRow and I am using tSampleRow to get the first record of the sorted list.

Is there a way I can assign one of the values of that record to a variable?

I want to use that value to filter records from another list.

Thank you,

Rui

Labels (4)
1 Solution

Accepted Solutions
Anonymous
Not applicable

Hi

You can store the value to a global variable or context variable on tJavaRow for used later on other components.

eg:

...tSampleRow--main--tJavaRow

on tJavaRow:

context.varName=input_row.columnName;

On other components, you can use the context variable directly.

Regards

Shong

View solution in original post

1 Reply
Anonymous
Not applicable

Hi

You can store the value to a global variable or context variable on tJavaRow for used later on other components.

eg:

...tSampleRow--main--tJavaRow

on tJavaRow:

context.varName=input_row.columnName;

On other components, you can use the context variable directly.

Regards

Shong