Set fields information using API

Closed
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

Public
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.
Regards,
Tanya

Public
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