JAVA REST API with Stimulsoft

Сonversation on different topics
Post Reply
navnathkalhatkar
Posts: 5
Joined: Tue Aug 24, 2021 9:28 am

JAVA REST API with Stimulsoft

Post by navnathkalhatkar » Thu Sep 09, 2021 5:56 am

Hello everyone,
I need help to integrate my JAVA REST API into Stimulsoft Application and create Dashboard. take input Datasource through JAVA REST API
Andrew
Posts: 4082
Joined: Fri Jun 09, 2006 3:58 am

Re: JAVA REST API with Stimulsoft

Post by Andrew » Thu Sep 09, 2021 7:46 am

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.
navnathkalhatkar
Posts: 5
Joined: Tue Aug 24, 2021 9:28 am

Re: JAVA REST API with Stimulsoft

Post by navnathkalhatkar » Thu Sep 09, 2021 11:13 am

Hello,

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

Thank you
Lech Kulikowski
Posts: 3947
Joined: Tue Mar 20, 2018 5:34 am

Re: JAVA REST API with Stimulsoft

Post by Lech Kulikowski » Thu Sep 09, 2021 11:22 am

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.
navnathkalhatkar
Posts: 5
Joined: Tue Aug 24, 2021 9:28 am

Re: JAVA REST API with Stimulsoft

Post by navnathkalhatkar » Thu Sep 09, 2021 11:31 am

Hello,

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

thank you.
Lech Kulikowski
Posts: 3947
Joined: Tue Mar 20, 2018 5:34 am

Re: JAVA REST API with Stimulsoft

Post by Lech Kulikowski » Fri Sep 10, 2021 1:20 pm

Hello,

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

Thank you.
navnathkalhatkar
Posts: 5
Joined: Tue Aug 24, 2021 9:28 am

Re: JAVA REST API with Stimulsoft

Post by navnathkalhatkar » Mon Sep 13, 2021 6:28 am

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
Lech Kulikowski
Posts: 3947
Joined: Tue Mar 20, 2018 5:34 am

Re: JAVA REST API with Stimulsoft

Post by Lech Kulikowski » Mon Sep 13, 2021 1:52 pm

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.
Post Reply