How to use Qlik's native search feature in my extension
I would like to use existing search feature in my own extension.
The search window I would like to use
How can I programmatically invoke such window when user clicks on a search icon in my extension? I can't find source code of native table so I can't check how it's done. The same search window appears when clicking on filter pane element, but again, I can't find the source code.
Both native table and Vizlib table use the same search feature so I believe it must be somehow accessible. This widget is very similar to the widget provided by Selection API (when you click and select) which is available for programmers, but I can't find a way to enable this standard search functionality in my extension.
A tip on how to figure out how to do things like this is to bring up the developer panel in Chrome and have a look at the websocket traffic that goes on while you are doing the operation you are interested in. I this case, when you first click the magnifier glass on a column in a table, then a session object will be created with a single list object definition. Like this:
That session object was created for a field called "Dim1" which contains the three values 'A', 'B' and 'C'. Now if I type 'A' in the input field of the search dialog that appears, then that will trigger these two calls: