Get Free Trial

How to get all format

Bilguun asked on September 14, 2020

Hello flex team,
I need getallformat(), similarly getallconditions() how do i get well current my opinion looks like
let arr = [];
let flex = flexmonster.getReport().slice.measures;
for (var i = 0; i < flex.length; i++) {
 let format =  flexmonster.getFormat(flex[0].uniqueName)
is there pre defined function something like this?

1 answer

Illia Yatsyshyn Illia Yatsyshyn Flexmonster September 15, 2020

Thank you for reaching out to us.
We want to explain that the recommended way to get all number formatting rules is to use the following construction:


Execution of the code snippet above returns all Format Objects of the current configuration. In case no formatting rules are present, undefined will be returned.
We hope it works for you.
Please contact us in case other questions arise.

Please login or Register to Submit Answer