- This topic has 6 replies, 2 voices, and was last updated 10 years, 9 months ago by Mike Felker.
-
AuthorPosts
-
Mike FelkerParticipantI am creating my first app in MobiOne and I need a bit of help with workflow.
I am creating a business card app for my leads group. I have the logo placed and a select list control placed with all the member’s names already input.
The goal is for the user to select one of those names and as a result, it goes to their ‘page’ and shows their information. If the user rotates their phone or tablet, then that person’s business card shows.
How would I accomplish this? How do I make multiple pages without them showing up on the tab bar (I have scrapped the Tab Bar for this reason).
Do I create 24 separate projects (there are 24 members) and then run the one that is selected. I would rather keep this in one app if possible.
I would love to have it so if you swipe to the left or right it sequentially goes through each member and the select list just allows you to ‘jump’ to that person much faster.
How would you all handle it?
Mike
BrandonMemberI would create a template page and fill it using JSON.
http://www.genuitec.com/support-genuitec/viewtopic.php?f=14&t=6272
Mobione does not inlcude a default swipe but it can be done:
http://www.genuitec.com/support-genuitec/viewtopic.php?p=22689#p22689
Mike FelkerParticipantActually, I have figured out that I can create ‘screens’, which are separate .mobi files and I can use a select item control with a javascript script to select the screens, but I need help with the actual javascript code.
As I said in a new post, any help with a code fragment would help me figure it all out.
Mike
BrandonMemberWell you would still need a screen for each person. Using an JSON you can use one screen and still provide the list of the people. With a lot less coding.
Mike FelkerParticipant..and how does one use a JSON? Isn’t JSON a set of controls, like Jquery?
Mike
BrandonMemberJSON is a data format. I have used it for quizzes and so much more. There are two good tutorials on it:
Using an extrenal json file
http://www.genuitec.com/support-genuitec/viewtopic.php?f=14&t=6272
Or creating the JSON in the app:
http://www.genuitec.com/support-genuitec/viewtopic.php?f=14&t=5231Depending on the number of people you have an external one will be easier for large numbers.
Once you have the json you can have a list widget that holds the people, they click on that and it fills out the details page and opens it.
Here is a good dynamic list sample from Octavio
http://www.genuitec.com/support-genuitec/viewtopic.php?f=8&t=6752&p=23744#p23744If you get stuck post the problem.
Mike FelkerParticipantThank you so much for your help.
I really LOVE MobiOne and having people such as yourself on this forum makes this app even more invaluable.
I will certainly be asking for your good advice on future, more difficult apps.
I decided to go a different route (I expounded upon in another thread) and that app is now essentially finished.
Mike
-
AuthorPosts