Get Free Trial

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

Alfonso Davide Pilato asked on October 12, 2020

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

1 answer

Vera Didenko Vera Didenko Flexmonster October 13, 2020

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:
Please let us know if such an approach would work fine for you.
Looking forward to your reply.
Kind regards, 

Please login or Register to Submit Answer