Currently, the screen is updated when moving to another tab.
In this case, when you return to the previous tab after working in another tab while working in the existing tab, the screen is updated and the existing data disappears.
In the case of a screen registered in a tab, I would like to keep the existing screen without being updated when the tab is moved.
OK, that’s what I thought, but didn’t want to answer something you weren’t even asking.
The developers have previously indicated that the tabbar component does not retain content of inactive tabs; it is by design to improve page performance. The components on the tab are rebuilt using stored configuration information, but the data is not stored with that configuration information. The only way to retain the content is to store the state of the tab content before changing tabs, and then restoring it when coming back to the tab.
I’m not sure exactly when the “change” event of the tabbar is fired; if it’s before the previous tab content is destroyed, you could use that event to get the content state (for example: form.getValue(), or grid.data.serialize()).
If the previous tab’s content is already destroyed with the “change” event is fired, then you’d have to find a way to make sure the content state is stored before the user clicks the new tab. With a form, you could use the form’s “change” event to store the form’s values into a variable (again, using form.getValue()).
I might suggest using an array that matches the tab IDs for storing the data, so that when the user goes back to a tab, you can use the “change” event to easily grab the stored content because the tab ID is given by the event. So it might look something like this: