
Announcements
Hello PA_Community!
I could use help with this critical bug.
Essentially I built a warning screen, which pops up and has the save button on this screen!
This works perfectly, however, when the user selects to save there is a slight delay before the warning screen disappears and this allows the user to click the save button again.
This result is a bunch of duplicates being made!
Please help! how can I stop this????
The warning screen is a component with behaviour type buttons on them
Make your warning screen a popup within the screen the save button is contained.
I have previously used a "popup" item which is just a group that contains an image with part transparency and an animation to emulate a loading screen this is all stored on the same screen the save button is located.
set the Visible property of the "warning screen" to something like:
showPopup
the onvisible of the screen should contain the following to ensure the "warning screen" isn't visible when the app starts:
UpdateContext({showPopup: false});
on the save button should be setup like this:
UpdateContext({showPopup: true});
*insert you method of saving here;
UpdateContext({showPopup: false});
*if needed insert navigation here;this makes the warning screen immediately cover the screen, preventing buttons from being pressed until the save has been completed and once complete hides the warning screen.