Good morning everyone and thank you for existing,
I have the following problem with notifications in this example block, simply the notification related to the component in the list "baratro" does not appear but it only shows me the last notification at the bottom connected to the component "scantinatoantitempesta". Why? Thanks
My intention is to randomly choose the components in the list (in the example for convenience only one "abyss") and then for each component chosen I have a message to show. I hope I made myself understood. thanks
maybe I understood the reason, searching in the forum I found the following topic:
This is the expected behavior. Blocks run on what is called the user interface (UI) thread. Therefore, no user interaction can occur within a stack of blocks, so the dialog doesn't actually appear until after the button event code completes. The ShowChooseDialog block shows the choose dialog, but it cannot pause execution due to the asynchronous nature of user interface programming. When the user clicks a button in the dialog, the AfterChoosing event is run to report the result back to your app, so anything you want to happen after the dialog should go there.
As you found out yourself, you also can use an advanced block
Usually you would use the regular block
GIALLO.Visible from the GIALLO drawer, same for the other arrangements
To simplify your project and to reduce blocks you now could look into