Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Custom Current Selections Values

Hi,

is there a way to set a custom value to a selection?

For example, doing some manual selections on my dashboard and then executing this simple macro

    ActiveDocument.Fields("foo").SelectPossible

in the Current Selections box I see "foo" with a value like "692 of 32320".

I would like to replace this "nasty" value with a new string value, previously calculated in other parts of the macro itself.

Thanks,

Marco

Please, don't attach QV files, because I'm using still evaluating the software with the personal edition.

1 Reply
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

You can use the GetCurrentSelections() function in a textbox to display the selections. You will need to use the maxvalues parameter to avoid the "n of n" display. You can also use getFieldSelections() if you want selections for a specific field.

-Rob

http://robwunderlich.com