i want to read and write some variables from the DataLayer of the CtrlX Core.
Solved! Go to Solution.
In general you can use an standard JS library (XMLHttpRequest) that can do https requests to use the REST API of the system. Please refer to the documentation of "How to to use the REST API".
I created a webpage with js code based on the hello.webserver example from the SDK. The example (see attachment) reads several data from datalayer and the content of the webpage will be dynamically refreshed. Inside the *.js file the XMLHttpRequest object is used for the connection to the CORE/datalayer. The main parts inside the example project are the index.html and the /js/UserCode.js files.