Qlik Community

QlikView Extensions

Discussion Board for collaboration on QlikView Extensions.

Announcements
If you are a Qlik Insight Bot user, join this collaborative group: JOIN GROUP
Highlighted
Not applicable

set selection in an Extension by the API

Hey,

it is possible to set a selection through the Extension API. I found something ( JsDoc Reference - Qv.Document.Object.Data ), but this should only work with listbox objects. Hope someone could help me.

2 Replies
Partner
Partner

Re: set selection in an Extension by the API

Hi

You could use the SelectTextsInColumn call (in the Data part as you mention). If you define the dimensions you would like to make selections in for the extension object and then some simple expression, you could then just use this call to make selections in these dimensions.

Br Patrik

Highlighted
Employee
Employee

Re: set selection in an Extension by the API

Hi,

you can use either

SelectTexts(recordsToSelect)

or


SelectTextsInColumn
(Column, toggle, recordsToSelect)


Example:

this.Data.SelectTextsInColumn(0, false, sel)

This definitely does not only work for listboxes but also within extensions!

I hope this helps!

Regards

Stefan