Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
BenjaminGroff
Contributor III
Contributor III

Selections toolbar not working

Hi all,
 
I could use some help with a problem I am currently having. I cannot get the selections toolbar to work within my custom extension. In the initial properties I have selectionMode = "CONFIRM" and this is the event listener I have for the table headings. The toolbar is popping up but the selections are not being made to the dimension.
 
Some important notes:
 
1. I am assigning "this" to the variable "zthis" because inside the event listener "this" has a different context and as a result does not apply the selections properly. From doing console.log's I know that the selections are being applied to "zthis" but they are not applying to the app.
 
2. There is a maximum of 1 dimension on this extension, that is why I am using a fixed value for the first space.
 
Here is my code:
 
let zthis = this;
 
//selections
$(`.heading`).off();
$(`.heading`).on("click", function() {
        zthis.selectValues(0, [$(this).data("dimension")], true);
});
 
 
If anyone has any tips or information that could help please share!
Labels (3)
0 Replies