on 08-07-2008 8:48 AM
This relates to NW Mobile 7.1, development for PDAs, NWDS SP05 P01
If the user exits the client application by using the Menu -> "Application Launcher", any pending changes to the data are commited. No data consistency checks are executed.
Can my code catch this exit?
Steps in more detail:
- the user is changing data in a form
- normally he would click CANCEL (which rolls back all changes) or SAVE
- the code executed on SAVE does some consistency checking and prompts the user to fix any problems
- the data changes are only committed if the checks are fulfilled
- if the user just selects "Application Launcher" in the menu, none of the checks are executed, and the inconsistent data is commited
Is there any event or callback where I can control this and at least execute a rollback?
Thanks for your help,
Andre
Hi Andre,
you observed the behavior correct. There is indeed a way to get notified once the application / component is exited. In your UI component, the component controller has a method called wdDoExit.In this method you can manually call rollback(). The method is called by the framework once the whole component is left. This is for example the case if the user navigates to any view provided by the framework (like the application launcher view).
Regards,
Stefan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Perfect Stefan
thanks a lot,
Andre
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.