Menu
Download Free Trial

How to make the XML default for the data?

I need to make XML for data. PHP, how to make the XML default for the data (fill and row).

2 answers

Public
Antonina Krus Flexmonster May 27, 2015

To create XML file with default configurations (data source, rows, columns) please use the following XML as a template and fill it with your values – http://www.flexmonster.com/download/report.xml

Then pass file URL to the embedPivotComponent() method:

var params = { configUrl : “config.xml”, licenseKey: “Z57T-132Y57-6M05-6A5L-3L3U-662O-686W-5A2F-5N4D-39” };
flexmonster.embedPivotComponent(“flexmonster/”, “pivotContainer”, “100%”, “615”, params, “html5”, true);

Public
Tanya Gryshko Flexmonster December 7, 2016

Hello all Flexmonster users,
Please note that embedPivotComponent() method was deprecated in version 2.3. You should use $(“#pivotContainer”).flexmonster() instead.
Also, in version 2.3 report object was structured. Properties were logically grouped into sub-objects. For example, all related to data sources properties are inside dataSource sub-object now.
XML reports are fully supported in terms of backward compatibility. It means you can open or set reports from the previous major version. Please note, that all reports will be saved in new JSON structure.
Regards,
Tanya

Please login or Register to Submit Answer