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.

How to delete invisible objects?
#1
Hi
Somehow (probably the screen has been made in a previous firmware build) it happened I've an object which is invisible in usermode but visible in touch mode. The problem is the object has no axes and size.

I exported the window and ther's this row:
{"object":63489,"id":3092,"params":"{\"size\":\"\",\"bold\":0,\"italic\":0,\"underline\":0,\"width\":56,\"height\":56,\"icon_on\":\"staircase-down-7A7F71-010101.svg\",\"icon_off\":\"staircase-down-A0F007-010101.svg\",\"icon_touch\":\"\",\"icons_add\":[],\"displaymode\":\"icon\",\"showcontrol\":0,\"fixedvalue\":\"\",\"update\":false,\"pincode\":\"\",\"widget\":81,\"backdrop\":0}"


You can see size parameters are empty.

Is there any workaround how to delete this object from my visualisation?
I don't want export it into a tar file, delete it from the file and import the file back because this visu has been linked to another visu pages.
LM5Lp, firmware: 2018.08.22 and 2021.12.15, FlashSYS v2, ARMv7 Processor rev 5 (v7l), kernel 4.4.151 and 4.4.259
Reply
#2
Via a script
Code:
db:delete('visobjects', { id = 3092 })
Reply
#3
Thank you it has worked!
LM5Lp, firmware: 2018.08.22 and 2021.12.15, FlashSYS v2, ARMv7 Processor rev 5 (v7l), kernel 4.4.151 and 4.4.259
Reply


Forum Jump: