Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
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"