Using on-device data to maintain the application state

You can use either the M-Business XML datastore or the UltraLite on-device database to store values that your application pages can use to maintain the application state.

You may want to use the M-Business XML datastore for this, even if you are using UltraLite for application's primary data needs, because the setup is simpler—the M-Business XML POD can create a schema on the fly.

Note

When you use on-device data to maintain the application state, be sure your application code initializes the data at the start of every session.

M-Business XML datastore is more suitable if the data is not synchronized to a back-end datastore, since there is an additional step of deploying a schema. In most cases, the M-Business XML datastore is a simpler method to implement session state maintenance.

For more information on using on-device data, refer to the chapters for the on-device data solution you wish to use: