Page 1 of 1

JAVA REST API with Stimulsoft

Posted: Thu Sep 09, 2021 5:56 am
by navnathkalhatkar
Hello everyone,
I need help to integrate my JAVA REST API into Stimulsoft Application and create Dashboard. take input Datasource through JAVA REST API

Re: JAVA REST API with Stimulsoft

Posted: Thu Sep 09, 2021 7:46 am
by Andrew
Hello,

Thank you for the request.

Dashboards are not supported in Java.
Dashboards are supported for WinForms, WPF (viewer) ASP.NET, ASP.NET MVC, NET Core, JavaScript, PHP.

Thank you.

Re: JAVA REST API with Stimulsoft

Posted: Thu Sep 09, 2021 11:13 am
by navnathkalhatkar
Hello,

how I connect my data with javascript API and Pass it into Stimulsoft.

Thank you

Re: JAVA REST API with Stimulsoft

Posted: Thu Sep 09, 2021 11:22 am
by Lech Kulikowski
Hello,

You can retrieve all data in your code and provide it to reports as DataSet with the regData() method
https://www.stimulsoft.com/en/documenta ... _files.htm

Thank you.

Re: JAVA REST API with Stimulsoft

Posted: Thu Sep 09, 2021 11:31 am
by navnathkalhatkar
Hello,

My Rest API data is Live it will change day by day then which way choose to do that operation.

thank you.

Re: JAVA REST API with Stimulsoft

Posted: Fri Sep 10, 2021 1:20 pm
by Lech Kulikowski
Hello,

Yes, in that case, you can also use the provided way.

Thank you.

Re: JAVA REST API with Stimulsoft

Posted: Mon Sep 13, 2021 6:28 am
by navnathkalhatkar
Hello sir,

this is my REST API URL "http://localhost:8080/programDashboard/ ... ?userId=13" it gives me a response in the below format.
{
"Result": [
{
"id": 177,
"program_Number": "70005",
"program_Name": "70005- 2 Lewis-Ontario TSOM 0742 69 kV Rebuild (UTLARM5D3)",
"description": " "
},
{
"id": 118,
"program_Number": "600788",
"program_Name": "600788- PARENT ACE Cape May New Transformer",
"description": "L19211 & L19212 Cable Replacement Project. Installation of approximately 3.5 miles of 138 KV XLPE conduit package and manholes from Overhead/Underground Terminal near Crawford Sta. 12 to Roosevelt & Kenton, where duct package will end. This work will be funded by GRIP. Work will also include transformer replacement of TR65 and TR67 with circuit switchers and fire separation walls at TSS 30 Columbus"

},
{
"id": 78,
"program_Number": "61152",
"program_Name": "61152- Targeted Transformer Replacement Program",
"description": " "

}
]
}

I pass the above JSON file as the data source in Stimulsoft gives me choose tables options. above URL passing in Stimulsoft as REST option does not give any response or any option to choose the table.

so the question is, is there an issue with my URL or in response format?

thank you

Re: JAVA REST API with Stimulsoft

Posted: Mon Sep 13, 2021 1:52 pm
by Lech Kulikowski
Hello,

Your JSON is correct.
Unfortunately, we can not say why it is not working in your side without a sample.

Also, please check
https://www.odata.org/getting-started/u ... n-6-steps/

Thank you.