I have a button in Taipy that when clicked calls a function performing some tasks that can give a valid or invalid result. In case of having an invalid result, clicking on another button must simulate a click on the first button (I cannot click on the first button directly because it has some status variables defined!).
I solved it by calling the function created inside the function of the second button, putting an ID and any action strings but, how can I make this click action programmatically?