25.10.2019, 10:07
(25.10.2019, 07:42)Trond Hoyem Wrote:(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?
Never mind last post. I found it. I had some limitations in my SQL select, so without that, every parameter came in tho log.
There are 10 kinds of people in the world; those who can read binary and those who don't