Create OData datasource programatically?

Stimulsoft Reports.JAVA discussion
Post Reply
Feyd
Posts: 4
Joined: Tue Feb 16, 2021 7:38 am

Create OData datasource programatically?

Post by Feyd »

I am trying to use data from a REST resource programatically in Java, and I think the only thing that comes close to that is using OData.
However, I cannot find the correct classes to create an OData datasource.

How can I do that?
Vadim
Posts: 362
Joined: Tue Apr 23, 2013 11:23 am

Re: Create OData datasource programatically?

Post by Vadim »

Hello.

ODate is not supported by Java version.
You can try custom database - https://www.stimulsoft.com/ru/samples/j ... in-runtime
Feyd
Posts: 4
Joined: Tue Feb 16, 2021 7:38 am

Re: Create OData datasource programatically?

Post by Feyd »

Oh okay, that's too bad.

So, you would recommend that I create something like a custom RESTDatabase (extends StiDatabase) or RESTDatasource?
One that I can use for REST calls, transforming JSON to something that Stimulsoft understands?
Vadim
Posts: 362
Joined: Tue Apr 23, 2013 11:23 am

Re: Create OData datasource programatically?

Post by Vadim »

Hello.

I would recommend create something like a custom RESTDatabase (extends StiDatabase) - as in example
Post Reply