25.11.2019, 13:53
Hi
I am facing a problem here. I have created a script that is adding widgets to the visu, and adding labels and objects to the widgets based on my object list. I have done it all on an older SpaceLYnk I had in my office, and everything worked fine.
Now I have copied the script to a newer SL at a project and am running the script. But on this SL the widgets are created, but no labels or objects are added to the widgets.
To insert the widget I greate a table with all properties of the widget and then use the following;
widget being the table with properties. This part works.
When adding labels and objects I also create a table and add it like this;
I have logged the tables, and they have the right values as far as I can see, but the elements are not added to the database. Has there been a change in this for the newer HW version. I am running FW 2.3.0 on both the new and the old SL that I have tested the script.
I am facing a problem here. I have created a script that is adding widgets to the visu, and adding labels and objects to the widgets based on my object list. I have done it all on an older SpaceLYnk I had in my office, and everything worked fine.
Now I have copied the script to a newer SL at a project and am running the script. But on this SL the widgets are created, but no labels or objects are added to the widgets.
To insert the widget I greate a table with all properties of the widget and then use the following;
Code:
db:insert('visfloors', widget)
When adding labels and objects I also create a table and add it like this;
Code:
db:insert('visobjects', element)
I have logged the tables, and they have the right values as far as I can see, but the elements are not added to the database. Has there been a change in this for the newer HW version. I am running FW 2.3.0 on both the new and the old SL that I have tested the script.
There are 10 kinds of people in the world; those who can read binary and those who don'tÂ