Despite the COVID-19 outbreak, our team continues operating at full speed. We are always here to support and answer all your questions.

Feel free to reach out by filling this quick form.

Fill the form
Get Free Trial

Is it possible to add the order position to the Flexmonster.addCalculatedMeasure method?

Answered
Alfonso Davide Pilato asked on October 12, 2020

Hi.
i ask you if the position is added in relation to the table:
Example
Initial table:
Col1 – Col2 – Col3 – Col4 – Col5
var measure = {
 formula: ‘1+1’,
 uniqueName: “Test”,
 caption “Test”,
 active: true,
 orderPosition: 2 —> Number 0 to N
},
flexmonster.addCalculatedMeasure(measure);
After the method was excute
Final table:
Col1 – Col2 – Test – Col3 – Col4 – Col5
Let me know.
thank you.

1 answer

Public
Vera Didenko Flexmonster October 13, 2020

Hello, 
 
Thank you for your question. 
 
Our team would like to kindly explain that the orderPosition property is not available for the addCalculatedMeasure() API call at the moment. 
 
Please consider that it is possible to dynamically add calculated values (at a specific index) to the slice.measures property of the report object. Here is a JSFiddle example: https://jsfiddle.net/flexmonster/4wbL923d/.
 
Please let us know if such an approach would work fine for you.
Looking forward to your reply.
 
Kind regards, 
Vera

Please login or Register to Submit Answer