Best option to connect with data

Stimulsoft Reports.JS discussion
Post Reply
hugo
Posts: 359
Joined: Fri Mar 08, 2013 10:46 am

Best option to connect with data

Post by hugo »

Hello,

I'm using Stimulsoft Reports.JS (purchased version because of halloween discount).
I will start using now more serious on a new project and I need to define my data connection strategy.

I know from a previous post that there is no BusinessObjects (although there is the option on designer for now) on JS.
With FX I deal with all server requests and convert the data to proper business objects (entities) between Flex and server side and then I populate this data directly on the report, so the report is 100% unbound from any dependency from server side or even database engine.

With JS, my options are:
1. Bound directly to database. I assume that the database engine don't need to be exposed from localhost using your php helper, correct ?
2. Export my data to JSON file (static path) and point the report to that data file.

Those are all possibilities or I'm not aware of any other ?

Thanks,
Hugo.
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

Re: Best option to connect with data

Post by Vladimir »

Hello Hugo,

Thank you for your interest in the product, we welcome feedback.

1. We finished the PHP data adapter for Reports.JS, it will be available in the new release 2015.3 in early next week. The first phase will support MSSQL, MySQL and Firebird data sources.
2. You can export data in JSON or XML format and connect them using JavaScript function report.regData(), or use the appropriate data sources in the designer.

Thank you.
hugo
Posts: 359
Joined: Fri Mar 08, 2013 10:46 am

Re: Best option to connect with data

Post by hugo »

I ended up discovering that possibility (deal with the data request on my own and then use regData, similar that what I wanted on the first place) but unfortunately I can't put this to work.
I opened a new post specific about that: http://forum.stimulsoft.com/viewtopic.php?f=27&t=41711

Thank you.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Best option to connect with data

Post by HighAley »

Hello.

We have answered you in that topic.

Thank you.
Post Reply