Hello folks,
I'm having a bit of a problem when using GUI widgets in webserver.
Like the title, I'm using a combobox like this in a dashboard:
The combobox options are like the following pic, the idea is that the combobox provides a list of location id which can be selected for the crane to travel to.
The OnSelect trigger for this combobox is set as the following code, which simply assert an option value into the label "GUI_loc" of the Crane16
/**Custom Code*/ int selNr = get(itemcurrent(c)); treenode link = node("..>objectfocus+", c); double loc_id = items(c).subnodes[selNr].value; TaskExecuter Crane = Model.find("Crane16"); Crane.labels["GUI_loc"].value = loc_id;
Everything works just fine when I tested it locally, selected the option and the crane's label was changed accordingly. However, when I run the model on webserver, an exception was thrown in when the combobox was selected.
Could anyone give me some ideas on the differences between using this feature on local drive and on webserver?
Much appreciate :)
Hoang