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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to get Current Selection Value for a particular Field

Hi,

Is there a function which gives the current selection for a particular field.

Thanks & Regards,

Rohit

1 Reply
martin59
Specialist II
Specialist II

Hi,

Extract from the help file :


<h4>GetFieldSelections( fieldname [, valuesep [, maxvalues=6 ]] )</h4>
returns a string containing the current selections in a given field. Valuesep is the delimiter between selected values and defaults to ', '. Maxvalues is the highest number of individual values that will be displayed before 'x of y' notation is used instead. <h2>Examples:</h2>
getfieldselections(Country)
getfieldselections (Country, ';' )
getfieldselections (Country, ',' , 10 )


Martin