Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
smilingjohn
Specialist
Specialist

Current Selection

Hi All,

The current seletion is taking the field names from the script..

is it posible to rename the fields appearing in current selection ..

In the filters i have reneamed the field names, and in the current seletion it is

considering tghe names from the script....

Expertise please suggest

Thanks in Advance

7 Replies
Sergey_Shuklin
Specialist
Specialist

Hello, John!

You can use a Replace() function for replacing original names to needed.

smilingjohn
Specialist
Specialist
Author

Hi Sergey ,

Can you please give an example ..it will be really needfull..

Should we use this in the currentselection ? or where

Thanks

qlik4asif
Creator III
Creator III

You can change the field name by giving name in Label column in General tab of current selection box

It will display according to label name not as per script.

Sergey_Shuklin
Specialist
Specialist

Create a Current Selection object.

Remove Values from it, leave only names of fields and eraser.

Then create a Text Object with function =GetCurrentSelections() - it will return the same result as a Current Selection object.

(useful:

GetCurrentSelections() have a max_value parameter, so you can set it to 0 and records will be 1-lined)


After that use Replace() function over GetCurrentSelections() as much as you have available for selection fields and make any names you like for each field.


Size Text Object and place it over Current Selection object exact on field names (make sure that eraser pic not covered with it, so the user will be able to remove selections).

smilingjohn
Specialist
Specialist
Author

Hi Sergey ,

Iam not able to achieve this .

Please give me an example in the qvw file ..

Thanks

tresesco
MVP
MVP

With current selections box object, you can't do that. You can try an alternative of creating text-box as explained here: Current Selection Alternatives

Sergey_Shuklin
Specialist
Specialist

I've made a little instance. Hope it will help!