Qlik Community

New to Qlik Sense

Discussion board where members can get started with Qlik Sense.

kranthi_bhattu
New Contributor

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

Re: Adding Alternate states n APP and assigning to objects

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
kranthi_bhattu
New Contributor

Re: Adding Alternate states n APP and assigning to objects

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

Re: Adding Alternate states n APP and assigning to objects

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
kranthi_bhattu
New Contributor

Re: Adding Alternate states n APP and assigning to objects

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

Re: Adding Alternate states n APP and assigning to objects

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
kranthi_bhattu
New Contributor

Re: Adding Alternate states n APP and assigning to objects

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?

Community Browser