25.10.2019, 07:42
(This post was last modified: 25.10.2019, 08:14 by Trond Hoyem.)
(25.10.2019, 07:03)admin Wrote: You can create a copy of plan/widget like this:Great!
Code:oldid = 123
item = db:getrow('SELECT * FROM visfloors WHERE id=?', oldid)
item.id = nil
db:insert('visfloors', item)
newid = db:getlastautoid()
Will try that.
OK, this part is working. But to be able to add stuff to the widget I need to enter the position of each item. I tried to log the items on a widget to see what information I couldt get. A typical object gave me;
lageWidgets 25.10.2019 10:10:14
* table:
["object"]
* number: 65794
["id"]
* number: 3
["type"]
* number: 1
["name"]
* string:
["statusobject"]
* number: 65794
But I would need to have all the properties that we find in the visu-creation interface. Is there anywhere I can read up on this to find what I am looking for?
There are 10 kinds of people in the world; those who can read binary and those who don'tÂ