Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[OTHER] state doesn't properly works #2084

Open
1 of 2 tasks
Tal-Zamir opened this issue Oct 17, 2024 · 1 comment
Open
1 of 2 tasks

[OTHER] state doesn't properly works #2084

Tal-Zamir opened this issue Oct 17, 2024 · 1 comment

Comments

@Tal-Zamir
Copy link

Tal-Zamir commented Oct 17, 2024

What would you like to share or ask?

Hi,
Seems like there is an issue using State variable. When I am using Taipy state variable the UI, the variable get updated but the UI get stack.
The UI looks like its loading for infint time and doesn't response anymore (seems like its 'bussy').

What am I doing wrong? am I not using correctly the State variable? I need help to fix it - else I am giving up =[
UI.py:

project_number   = ''

main_page = """ ...
<|card
<center>Project Number</center>
 <center><|{project_number}|selector|width="180"|lov={project_numbers}|label=project numbers|dropdown|>
         <|Apply|button|on_action=update_master|>
 </center>
|>
|>
"""

utlity.py:

def update_master(state):
...
project_num = state.project_number
...

notify(state, "success", "[INFO] Master file has been updated")
return

But the function get stack when the notify comes and than the UI is not responding anymore.

Code of Conduct

  • I have checked the existing issues.
  • I am willing to work on this issue (optional)
@FlorianJacta
Copy link
Member

FlorianJacta commented Oct 18, 2024

Could you create a code from start to finish in a single file with your issue? And tell us what you would like it to do?

You can look into our Tutorials to understand how Taipy works.

@jrobinAV jrobinAV changed the title [OTHER] <state doesn't properly works> [OTHER] state doesn't properly works Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants