cancel
Showing results for 
Search instead for 
Did you mean: 

7.1: Exiting the client App commits any changes

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

stefan_henke
Contributor
0 Kudos

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

Answers (1)

Answers (1)

Former Member
0 Kudos

Perfect Stefan

thanks a lot,

Andre