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?
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