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

How to display a search string in a text object

I'm trying to figure out how I can display search strings after submitting them. For example, once I type a search string into a search object and press Enter, I would like to somehow display the string that was searched (possibly through a text object). Right now, the closes I can get is using GetFieldSelections() but it only shows a number (e.g. "324 of 13250") rather than the actual search string. I'm trying to get this to work for multiple search terms too. So if someone searches "test" the presses Enter, and searches "blue" and presses Enter, I want a text object to display "test, blue". Thank you in advance for your help!!

6 Replies
el_aprendiz111
Specialist
Specialist

Hi,

1 example

=Concat(DISTINCt Country,', ')

sunny_talwar

You can also use GetFieldSelections (https://help.qlik.com/en-US/qlikview/12.0/Subsystems/Client/Content/ChartFunctions/FieldFunctions/ge...) with the third parameter here:

Capture.PNG

GetFieldSelections(FieldName, ', ', 15000)

Not applicable
Author

Thanks for the quick reply. Unfortunately, this only shows the matching field text. Instead, I'm trying to display the search text. For example, if I search for the word "bicycle," I want to output "bicycle" and not the field text that contains the search word.

Not applicable
Author

I'm not getting this to work. It is still only displaying "# of #" rather than the actual search string.

vinieme12
Champion III
Champion III

I don't think you can capture string from a search object

You can only capture Active Selections

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
beck_bakytbek
Master
Master

Hi Mehdi,

check this topic: https://www.youtube.com/watch?v=rIsbfthlTE4

i hope that resolves your issue

beck