Qlik Community

Ask a Question

New to QlikView

If you’re new to QlikView, start with this Discussion Board and get up-to-speed quickly.

Announcements
Welcome to our newly redesigned Qlik Community! Read our blog to learn about all the new updates: READ BLOG and REPORTED ISSUES
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
Specialist
Specialist

Hi,

1 example

=Concat(DISTINCt Country,', ')

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

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

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

Champion II
Champion II

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

You can only capture Active Selections

Master
Master

Hi Mehdi,

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

i hope that resolves your issue

beck