load json-information from an URL

Everything regarding the Power-Grid SDK can be asked and discussed here.

load json-information from an URL

Postby elnappel » 23. Jan 2015, 12:33

hi again,

just to get some pre-information before i dig into development of grids.
is there a way to load json-data from a web-url and write the information into the grid-elements?
i have no clue in regard to qt nor c++, but i am firm with javascript and json.

thought of a json-web-service that provides information i want to show up in the grid at least
Posts: 2
Joined: 23. Jan 2015, 11:58

Re: load json-information from an URL

Postby Addihash » 2. Mar 2015, 12:56

If you know how to load the json-data with javascript you can display the retrieved data with this.FindLayout("my_layout_name").setText(my_json_data);
When using C++ I would recommend libcurl and a json parser of your choice.
Posts: 232
Joined: 2. Feb 2015, 14:35

Return to Power-Grid SDK

Who is online

Users browsing this forum: No registered users and 1 guest