How to toggle between screens and retain their contents

When I go to WebPreview this is how it looks:


I click the TriggerFunc and I get this screen

But you will see at the top MainScn is selected but it is showing the contents of DbgScn. Out of sync. Then on what ever I click I keep getting the first screen:

The blocks for the DbgScn is this
image
Here as long as DbgTraceInProgess is True it keeps going back to MainScn after the last func is called it just stays in DbgScn. Please tell me what should I do to make the top menu item and the screen displayed below in sync? Also the value of both the screen should not be lost as long as I am in WebPreview. Please advice.

The tabs at the top of the Design/Blocks page do not update as you navigate through your app while previewing it in a browser. So if you are editing MainScn and you preview the project, it will always have that screen selected regardless of which screen you are actually previewing at the moment.

If that doesn’t answer your question, consider posting a link to your project.

1 Like

Thanks, yes that does answer one question. Your answer gave me a different perspective to the problem, let me rethink my issue and see if I can fix my issues, if not will post the link. Thanks again for the prompt answer.

1 Like

https://x.thunkable.com/copy/9d3cb3762596e74d81e20a7885ce602f
Tatiang here is the link and it is baffling. Screen1 and Screen2 are absolutely identical but for the values data1 and data2 gets initialized. Screen1 works Screen2 does not :frowning: What have I missed? Please advice.

1 Like

This is what I get:

image

image

I assume that means both screens are working correctly.

Edit: oh wait, I do see that Screen1 joins the existing label value to the label’s text but Screen2 does not. So yes, there’s something broken there.

image

image

One of the labels has a persistent value across screens and the other does not. Neither one should have a persistent value. It does the same thing on my iPhone 11 in Thunkable Live. I can’t explain this.

Should I wait for some one else to respond or put this as a new issue so that someone can take a fresh look at it. I will put the link and some explanation.

I would suggest submitting a bug report.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.