Menu
Download Free Trial

How to set delimited string from dataSource

It is possible to pass a delimited string as a dataSource??
Exemple:
var delimited = “COD;NAME;AGE\n”;
     delimited += “1;JOHN;30\n”;
     delimited += “2;Mary;23\n”;
 
var pivot = $(“#pivotContainer”).flexmonster({
     componentFolder: “/Content/js/flexmonster/”,
     toolbar: true,
     report: {
     dataSource: {
    data: delimited
    }
 },
 

2 answers

Public
Dmytro Zvazhii Flexmonster February 17, 2017

Hello Cleyton,
Thank you for the detailed explanation. Such approach is not available for the CSV strings now. We added your request to the customers wishlist. Right now, you can use such approach for the JSON objects (http://www.flexmonster.com/doc/json-data-source/). If you need to load CSV data you can do it with a file or with file url (http://www.flexmonster.com/doc/csv-data-source/).
Please let us know if it works for you.
Best regards,
Dmytro.

Public
Cleyton Barroso February 17, 2017

Thank you for help

Please login or Register to Submit Answer