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

How to get all format

Answered
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)
arr.push(format);
}
 
is there pre defined function something like this?
 

1 answer

Public
Illia Yatsyshyn Illia Yatsyshyn Flexmonster September 15, 2020

Hello,
 
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:

flexmonster.getReport().formats

 
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.
 
Regards,
Illia

Please login or Register to Submit Answer