🍉 Meet Flexmonster Pivot Table & Charts 2.9.Check out all hot features!
Get Free Trial

Set fields information using API

Daniel Rutledge asked on March 15, 2019

I noticed there are methods to retrieve the field information for the Flexmonster object (getColumns, getRows, etc), but there isn’t a setColumns method, like there is setOptions or setSort. Is the only way to achieve this by manipulating the report object programmatically?
This is potentially useful if the user would like to manipulate the table into a certain state, and then our application restores it later with the same field layout.

2 answers

Tanya Gryshko Tanya Gryshko Flexmonster March 15, 2019

Hello, Daniel,
Thank you for contacting us.

For your case, we suggest using runQuery or setReport API calls.

Please let us know if it works for you.

Daniel Rutledge March 15, 2019

runQuery was exactly what I was looking for; I can retrieve the data, and then use runQuery to restore the user’s previous state.

This question is now closed