End-users are strange. Sometime they need the system we are developing to remind them when they do silly things. For example some users want us to remind them if they are trying to navigate away from a page where they did changes to data, but didn’t click “save”. Below I’ll show you an approach for implementing such a behavior in Oracle Visual Builder Cloud Service.
What we are going to do is cancel navigation actions until users acknowledge that they are ok to leave the page.
I will leave it up to you to decide when this should go into effect. While some people might claim that this should be the default behavior across the app, this is debatable. For example, if I go into a “create record” type of page, and then without doing any changes decide to leave that page – should I be prompted for a “you have unsaved changes” message? Isn’t me leaving the page the equivalent of saying – I don’t need to do changes? As you can see the decision is not clear cut – so in the demo below I let you control when we start this “changes were made” status simply by pressing a button. In real applications these can be done for example when a value in a field changes. At the end of the day, all you need to do is set a boolean variable that tracks whether we are now in “changes were made” status. Read the complete article here.
For regular information become a member in the Developer Partner Community please register here.
Blog Twitter LinkedIn Facebook Meetups
Technorati Tags: PaaS,Cloud,Middleware Update,WebLogic, WebLogic Community,Oracle,OPN,Jürgen Kress