This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Create/ copy widget in visu
#4
(25.10.2019, 07:03)admin Wrote: You can create a copy of plan/widget like this:
Code:
oldid = 123
item = db:getrow('SELECT * FROM visfloors WHERE id=?', oldid)
item.id = nil
db:insert('visfloors', item)
newid = db:getlastautoid()
Great!
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  Cool
Reply


Messages In This Thread
Create/ copy widget in visu - by Trond Hoyem - 23.10.2019, 21:13
RE: Create/ copy widget in visu - by admin - 25.10.2019, 07:03
RE: Create/ copy widget in visu - by Trond Hoyem - 25.10.2019, 07:42
RE: Create/ copy widget in visu - by admin - 25.11.2019, 14:29
RE: Create/ copy widget in visu - by admin - 25.11.2019, 15:12
RE: Create/ copy widget in visu - by admin - 25.11.2019, 15:29
RE: Create/ copy widget in visu - by admin - 25.11.2019, 15:34

Forum Jump: