Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
RSvebeck
Specialist
Specialist

Clear all selections in my document?

Hi

I'm trying to understand how to write stuff by reading the Qlikview JavaScript Library documentation, but beeing novice on both Java and Extensions foreces me to ask at the forum again...


I want to clear all selections in my document when my extension is initiated.
I have written like this:


Qva.AddExtension("ExtensionTest", function ()
{
var mydoc = Qv.GetCurrentDocument();
myDoc.Clear();
});

But my selections are still there when my extension object is started / restarted.


I noticed that

this.Data.ClearSelections(); will clear all dimensions that are connected to my extension, but I want to clear all selections in my document.


// Robert

Svebeck Consulting AB
4 Replies
RSvebeck
Specialist
Specialist
Author

No answer...Is this question to simple or to complex?

Svebeck Consulting AB
Anonymous
Not applicable

you try in macro...

RSvebeck
Specialist
Specialist
Author

Thanks for your suggestion. But I don't want to clear all with a macro in the docuement since I need the extension object to trigger the "clear all" based on some events in the extension object itself. Therefore I need this to be written in Java Script inside the extension script. Regards Robert

Svebeck Consulting AB
Not applicable

could you get the syntax? i am looking for a way to clear the selection when the page gets loaded in the "Edit Module"