Replies: 1 comment 4 replies
-
Hey, Alex from Taipy here! This is a complex support request. It would be better to meet with us to debug this. Feel free to contact me at Something has to be changing the data instead of the A good way to fix this would be to use Try to add: def on_init(state):
state.company_name = "SHELL"
state.data = regenerate the data for SHELL
state.viz = ...
... Also, you can debug multi-user issues without deploying the app online: if you connect to your app in an incognito tab in your browser, it will simulate connecting with a new user Hope this helps! |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
We have deployed a multi-pages app on a Debian machine following this page : https://docs.taipy.io/en/latest/manuals/run-deploy/deploy/linux/ubuntu/.
The app is online but we have strange behavior on pages where there are some controls (selectors).
To sum up (I could give details if needed), on one page we have a selector from which depends different values displayed in the rest of the page. This could be number, text, table or charts.
What we can see is the fact that sometimes values seem to change themselves or values are wrong (which is not the fact in local mode). So we think the state is shared between the users on the site at the same time which seems strange if we read this.
The actual where it happens is called 'company' the pages is added to the Gui from the
main.py
file :gui_multi_pages = Gui( pages=pages, css_file="css/style.css" )
In the
company.py
file we initialize a few variables whereselected_company
is the variable linked to the selector.In
company.md
:<|{selected_company}|selector|lov={selector_company}|on_change=on_change_company|dropdown|class_name=fullwidth mb2|width=65%|>
Then we use the
on_change_company
function to modify values :So what did we do wrong ? Should we initialize the state of variables instead of initializing them directly ? Should initialze the state on the main ? We are a bit lost for the moment...
Thank you for your help.
Beta Was this translation helpful? Give feedback.
All reactions