This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Custom APP access to trends
#1
Hi, 

When building a custom app, is it possible to access the trend log data? This is so I can create my visualization entirely custom with angular and use the trend log data in a chart. I have captured a call made by the trend log app (via chrome dev tools) and recreated such a request. The endpoint is: 'http://IPLM/scada-vis/trends/fetch'. It appears to be a POST request with Form Data. I have set the basic auth header and all looks identical, still i get a 404. Is there not an easier way to access trend data from outside the LM?

Kind regards!
Reply
#2
You are probably missing the "X-Requested-With: XMLHttpRequest" header in your request.
Reply
#3
(02.08.2021, 07:18)admin Wrote: You are probably missing the "X-Requested-With: XMLHttpRequest" header in your request.

Wow that could have eluded me for days! The addition of this header indeed led me on the right path. I have been able to get the data via postman. Next step will be via angular, but that should not be a problem.

Thanks!
Reply


Forum Jump: