Avoid problems with renumbering pages starting with v.3.5x #3240
Replies: 1 comment 1 reply
-
This discussion is a little late in the development cycle of 3.5.0, but here are my thoughts:
I'm not particularly a fan of using Page Name as a reference for things like changing page on a surface when a name is not globally unique. Also what if Page 5 was named '4'? Should a button that changes a surface to page 4 change to the actual page 4, or the page named 4 even if it's index 5?
Manipulating what a user has set may be just as problematic as what if the user references pages by index, and wants to manipulate that index by inserting/deleting a page to offset all of their references one way or another then by Companion automatically adjusting page references (which in itself is complicated when you consider some references could be variables, some could be utilized in expressions, etc...) then you're causing problems in another way. |
Beta Was this translation helpful? Give feedback.
-
Hi guys,
with the upcoming 3.5 version, it will be a matter of a short drag&drop to renumber the pages and possibly destroy a whole logic if someone is using things like button press/release where pages are addressed.
I suggest to implement two diffent things to create an option to avoid that:
instead of addressing a page number, it could be made possible to use the name of the page (before: 1/1/0 - after: Mainpage/1/0). There could be some enumeration in the system to look for the first page with the name 'Mainpage' and translate it to the correct page. This would keep the 'Mainpage' in the example safe to address, even if it is moved somewhere else.
Another option could be to automatically rename all page addressings (1/1/0 would be automatically detected in a command and converted to the new page like 5/1/0). But I guess, the first idea maybe easier and more reliable to implement.
Beta Was this translation helpful? Give feedback.
All reactions