Greetings Everyone,
I am trying to get familiar with b4xpages. I have read and watched some tutorials but i still need a little push. I have this old app which i'm trying to convert to b4xpages. Once i get how to start, i will be able to continue.
This is how i implemented it,
I used a KeyValueStore, stored in the Starter, to store some contents . The app starts with a splash screen, whiles checking for remote connection in the background.
If connection is unsuccessful, display a message using the default message dialog which closes/ends the app upon tapping on the button.
If connection is successful, it checks if the KeyValueStore content. If empty navigate to the login screen else go to the dashboard.
'1. Create a [splash screen] with a timer whiles checking the [connection] in the background.
'2. If [connection] is [NotSuccessful], exit the app'
'3. If [connection] is [Successful], Check if the user has saved credentials.
'4. If [No], start the [Login] module.
'5. If [Yes], but is [NotApproved] start the [Login] module.
'6. If [Yes] and [Approved], start the [Dashboard] module.
Attached is a sample created from the orginal.
I am trying to get familiar with b4xpages. I have read and watched some tutorials but i still need a little push. I have this old app which i'm trying to convert to b4xpages. Once i get how to start, i will be able to continue.
This is how i implemented it,
I used a KeyValueStore, stored in the Starter, to store some contents . The app starts with a splash screen, whiles checking for remote connection in the background.
If connection is unsuccessful, display a message using the default message dialog which closes/ends the app upon tapping on the button.
If connection is successful, it checks if the KeyValueStore content. If empty navigate to the login screen else go to the dashboard.
'1. Create a [splash screen] with a timer whiles checking the [connection] in the background.
'2. If [connection] is [NotSuccessful], exit the app'
'3. If [connection] is [Successful], Check if the user has saved credentials.
'4. If [No], start the [Login] module.
'5. If [Yes], but is [NotApproved] start the [Login] module.
'6. If [Yes] and [Approved], start the [Dashboard] module.
Attached is a sample created from the orginal.
Attachments
Last edited: