Skip to main content
Announcements
See why Qlik was named a Leader in the 2024 Gartner® Magic Quadrant™ for Data Integration Tools for the ninth year in a row: Get the report
cancel
Showing results for 
Search instead for 
Did you mean: 
GustavLindstrom
Contributor II
Contributor II

Add master dimension to chart with API

I'd like to add a master dimension or measures to a master visualisation chart though an API. I've looked at the get and set properties api calls in the Engine API. But with that aproche you need to recreae all of the chart properties, a big json. Is there any call that is similar to pushing the add measure button in the GUI?

 

Screenshot 2022-11-05 at 14.50.27.png

Labels (1)
  • API

1 Solution

Accepted Solutions
alex_colombo
Employee
Employee

What add dimension/measure botton does is calling SetProperties method behind the scene passing the entire json object with the addition of your dimension/measure added with the button itself.

I don't see any other way of doing this, you have to use GetProperties and SetProperties methods

View solution in original post

4 Replies
GustavLindstrom
Contributor II
Contributor II
Author

More generally speaking what is the best way to work with the chart properties?

alex_colombo
Employee
Employee

What add dimension/measure botton does is calling SetProperties method behind the scene passing the entire json object with the addition of your dimension/measure added with the button itself.

I don't see any other way of doing this, you have to use GetProperties and SetProperties methods

GustavLindstrom
Contributor II
Contributor II
Author

Thank you for the reply. Do you know if there is any way to se the api calls Qlik Sense makes and also possibly the code men pushing the add button?

alex_colombo
Employee
Employee

Use the network tab of developer browser tool. Then, inspect WS messages and there you can see what happen behind the scenes