I have created the interface as shown in your youtube video and it works just fine. I am able to retrieve the data from the url
- Sampledate: "20200121T000000"
- {
- Sampledate: "20200117T000000"
I have created the interface as shown in your youtube video and it works just fine. I am able to retrieve the data from the url
What is the exact declaration of the interface method in XData server, and what is the exact JSON you received from the server, according to the browser network tab?
The JSON you get is an array, so I guess you should use
Thanks. This worked. I don't think I would have been able to figure this out on my own. Since you have JS.Tostring, everything gets converted to a string. In case I need to get a Jason object instead of just an array the way you use in your examples what needs to be done ?
Secondly which method is better in this case. Since in webcore we are not using firedac I thought the batchmove method is better. Please advice
Do you see a problem with this issue? I think its ok.
No This woks Since you have JS.Tostring, everything gets converted to a string. In case I need to get a Jason object instead of just an array the way you use in your examples can you please tell me what needs to be done
That's just the XDatawebClient that gets the TStream result as a string. If you perform a request using raw TWebHttpRequest, or return a TJSONArray instead of a TStream, then TXDataWebClient will treat it as a regular JSON object.
My current issue is resolved and I can go ahead with my project based on what you have already advised. I will have to work on this issue once I am free.