I discovered that even if I renamed a design element (a button in this case) the update hasn’t been registered so, since my any block component is looking for a specific name, which I set, in the design part of the app, but in the actual app it’s calling the button with an old name.
I explain:
My button was called “Button_Pizza”.
Then I renamed it to “Main_Button_Pizza”.
So I created any blocks events that interacted with the new name “Main_Button_Pizza”.
But if I check and make the app show me the name of the component that I’m clicking, it shows that the button that I rename “Main_Button_Pizza” is called “Button_Pizza”.
You can show your screen, how could you get the name of the component with this block? As far as I understand, this block returns the hash code of the object and cannot return the object name.
What happens is that when i press the button that you can see in that screenshot, the “Pulsante_Main_Margherita al taglio” I get from the app “Pulsante_Margherita”
which is an old name that I gave to that button, but I changed to use it with anycomponent blocks and I should get “Pulsante_Main_Margherita al taglio” as text.
Let me disagree with you. JSON cannot affect the retrieved value in any way, because in this case this block is used to display data in string form, in case component is an object.
If you have this block returns the name of the object, then it says a bug.
Renaming the design elements takes some time, it’s not instant,
So the code that you are getting is the code that the system gave to your button, if you leave it there, I don’t know for how long, it will be changed to the name you gave it
As you know, there is a block for dynamically creating a button during program execution. When using this block, we do not specify a name. For this reason, it is more logical that the reference to the component returns the code representation of the object, and not its name.