16.04.2020, 20:41
(This post was last modified: 16.04.2020, 20:42 by Erwin van der Zwart.)
Hi,
You cannot change the plan ID as it is related to the DB ID that is auto created when the plan, layout or widget is created, the objects on a page are also linked to this ID so changing the ID would result in missing references from visobjects on the page. If you create a plan this will get ID1, when creating a layout after that is will get ID2, adding another plan will get ID3 and adding a widget will get ID4, if you delete the first plan and recreate it it will get ID5 and ID1 will not exist anymore.
To get a list with ID's you can use this command:
A plan has no type (null) in the DB, otherwise type is layout or widget.
BR,
Erwin
You cannot change the plan ID as it is related to the DB ID that is auto created when the plan, layout or widget is created, the objects on a page are also linked to this ID so changing the ID would result in missing references from visobjects on the page. If you create a plan this will get ID1, when creating a layout after that is will get ID2, adding another plan will get ID3 and adding a widget will get ID4, if you delete the first plan and recreate it it will get ID5 and ID1 will not exist anymore.
To get a list with ID's you can use this command:
Code:
result = db:getall('SELECT id, name, type FROM visfloors')
log(result)
BR,
Erwin