Hi Team,
We are storing report(Out put of getReport()) in database and adding the "caption" in "Report.slice.rows" of stored report object. After this we are retrieving this report from database and viewing in UI using setReport().
We are losing the "captions" from Report.slice.rows object When we are again trying to get this report using setReport() to store in DB.
Could you please help us on this with example in angular if possible.
Thanks,
Ankaiah
Hi, Ankaiah!
Thank you for raising a ticket.
Currently, Flexmonster uses a newer approach for setting captions - via mapping object:
"mapping": {
"Country": {
"type": "string",
"caption": "Exporter"
},...
}
For backward compatibility, captions in the slice are still supported, but the report is saved with the caption moved to mapping.
Please see this example on JSFiddle to see the described behavior.
Feel free to contact us if other questions arise.
Best Regards,
Maksym