Hello CrossUI Community,
I've been working with CrossUI for a week and it's been fantastic. However, I've encountered an issue where renaming an object results in the loss of associated actions. The workaround of search/replace in the source code is quite cumbersome. Is there a better way to rename objects without losing actions, or is this an area for potential improvement in CrossUI?
Appreciate any advice or updates on this matter. Thank you!
[ADDED in 2.52]Retaining Actions When Renaming Objects in CrossUI
Re: Retaining Actions When Renaming Objects in CrossUI
Once you rename the object name, it becomes a code-level issue. So we have to replace all the old names with the new names in the script code.
In javascript, two basic ways to reference names, which makes it difficult to replace all names correctly. We have tried that, but the result is not good.
In javascript, two basic ways to reference names, which makes it difficult to replace all names correctly. We have tried that, but the result is not good.
- host.parent.name
- host.parent["name"]
- host["parent"]["name"]
Re: Retaining Actions When Renaming Objects in CrossUI
For the JSON-like configuration actions, we can sync the alias names later.