Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Adding Alternate states n APP and assigning to objects

Hi,

I got some java script code to add alternate staes to QVD.

Can anyone help how can we trigger the code( is it with in data load script) and assign the states to objects.

Regards,

Kranthi

6 Replies
Gysbert_Wassenaar

You can use an extension to do this: GitHub - ChristofSchwarz/QSExtension_SetObjectState: This Qlik Sense Extension allows you to assign ...

Alternatively you can look at the code of the extension to see how to do it.


talk is cheap, supply exceeds demand
Anonymous
Not applicable
Author

Gysbert,

Thanks for the quick response!

But I am afraid that the extension doesn't work always.

A month before it was working alright, however now it is not.

Also, I would like to know that can we execute a JavaScript code from data load editor?

If  yes, plz brief me with example.

Thanks,

Kranthi

Gysbert_Wassenaar

You can't assign alternate states to qvd data files.

And you can't execute java script from the data load editor.


talk is cheap, supply exceeds demand
Anonymous
Not applicable
Author

Thanks Gysbert,

Can you plz help in understanding the following.

Where can I write Javascript code, which would need execute every time on App open event without an Object in the app.

Regards,

Kranthi

Gysbert_Wassenaar

I don't think that's possible. How would the code know the app opened unless the code was part of the app?


talk is cheap, supply exceeds demand
Anonymous
Not applicable
Author

Let me brief my question, Script can be part of APP, however script should execute without user interaction via an object on APP. Basically the script should execute when the user open the APP. That is where I would like to create alternate states and activating default bookmarks,...etc. Is this possible?