Skip to main content
Announcements
Qlik Community Office Hours, March 20th. Former Talend Community users, ask your questions live. SIGN UP
cancel
Showing results for 
Search instead for 
Did you mean: 
salezian
Creator
Creator

backendAPI and selection

Dear Qlik fans,

I'm trying to create simple chart extension, but I'm struggling with selection. I'm using following code:

this.backendApi.selectValues(0,[array],true)

it selects perfectly, but I cannot implement CONFIRM mode. I set the initial property to selectionMode:"CONFIRM" but that haven't changed anything. In the documentation there's distinction between 2 calls

this.backendApi.selectValues(0,[array],true) 

and

self.backendApi.selectValues(0,[array],true) //to select in CONFIRM mode.

The problem is I don't know to what self refers to.

I'd be grateful for any idea.

 

Labels (2)
1 Reply
mek
Employee
Employee

Hi,

There are two selectValues methods to use depending on the mode you're after; this.backendApi.selectValues is used to immediately apply the selection, while this.selectValuescan be used if you want the selection toolbar to show and confirm manually.

Reference: https://help.qlik.com/en-US/sense-developer/November2018/Subsystems/APIs/Content/Sense_ClientAPIs/Ex...

PS: self is conventionally an alias for this, so they're usually the same.