Page 1 of 1

add graphql or mssql data adaptor to my project

Posted: Sun Jul 16, 2023 7:33 am
by tourajasadpour
hi i have project with report js , there are some issues that i mentioned below :
1- i want to load reaport from graphql or mssql data adaptor but i dont khonw how to to do that
2- i wnat to add persian language (fa.xml) to viewer
can you help me , i atteched my project for you .

Re: add graphql or mssql data adaptor to my project

Posted: Sun Jul 16, 2023 8:28 am
by tourajasadpour
can you correct my project and send it to me , i want to buy stimulsoft but i dont know will it work for me or not ?
you can do npm install and then npm run dev , to run my project

Re: add graphql or mssql data adaptor to my project

Posted: Sun Jul 16, 2023 8:40 am
by tourajasadpour
3 - and i want to send parameter to my report for filter my report data

Re: add graphql or mssql data adaptor to my project

Posted: Sun Jul 16, 2023 10:11 am
by Lech Kulikowski
Hello,

1. graphql is not supported in the JS version, you can retrieve data in your code and then provide it to the report with the regData() method:
https://www.stimulsoft.com/en/documenta ... _files.htm
or you can implement and connect your own data adapter:
https://www.stimulsoft.com/en/documenta ... _bases.htm
https://github.com/stimulsoft/DataAdapters.JS

2. Please check the following article:
https://support.stimulsoft.com/hc/en-us ... Reports-JS

3. You can use variables as parameters in the report and then provide values for it from code:
report.dictionary.variables.getByName("variablename").valueObject = "your value";

Thank you.

Re: add graphql or mssql data adaptor to my project

Posted: Sun Jul 16, 2023 12:58 pm
by tourajasadpour
thank you for your reply , can you add data adapter to my uploaded project ?
i think i should create another project to post data request , true ?

Re: add graphql or mssql data adaptor to my project

Posted: Mon Jul 17, 2023 11:17 am
by Lech Kulikowski
Hello,

Please check the sample:
https://github.com/stimulsoft/Samples-R ... P%20server

Thank you.