Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
comunico
Partner - Contributor III
Partner - Contributor III

Changing dimensions and expression from within Javascript

Hi All,

I'd like to change the values of dimensions and expressions (set in the extension object properties) from the script.js: is it possible? How?

Many thanks

1 Solution

Accepted Solutions
Not applicable

you can use:

this.Layout.SetProperty('Chart.Dimension.0.Field', newDimension);

however note that it will work only in webview and not when your document is hosted on a server


View solution in original post

3 Replies
Not applicable

you can use:

this.Layout.SetProperty('Chart.Dimension.0.Field', newDimension);

however note that it will work only in webview and not when your document is hosted on a server


Not applicable

Hi Luca,

Have you tried to remove a dimension or expression via Javascript?

Have a nice day,

Mattia

Not applicable

As far as I know there is no way to do that programmatically, the only way is to go through the property panel after having defined your dimensions or expressions numbers as variable (don't remember how to do that though...).