I'm working on a mobile application where the user essentially edits data in two tables:
* Screening
* Diversion Plan
Screening has a one-to-many relationship with Diversion Plan, and both tables use identity (a.k.a., auto-increment) integers for their primary key. I've built a UX component which constists of a series of panels. The first panel is a list of the user's screenings (along with an 'Add' button), followed by a series of panels that let's the user edit whatever fields of the screening they want to edit. On one of thse panels, I want the user to be able to add Diversion Plans to the Screening and edit them.
As far as I can tell, there seems to be two ways to do this: use Repeating Sections or use a List Control with the "Open a UX Component to Edit Record in List Control or Enter a New Record" action.
Using the List Control solution would be ideal, because it's better optimized for a mobile interface. However, I'm not sure this approach will work because, if a user creates a new Diversion Plan for the Screening, how does the new Diversion Plan get linked back the Screening? Screening's ID wont necessarily be known yet because the Screening may not have been saved the server yet. Am I stuck with using a Repeating Containers? Should I switch to using an ID that can be generated client-side, like a GUID perhaps? Does AlphaAnywhere somehow handle this for you already?
Also, the client has expressed that they'd like this application to be offline-capable, if that makes a difference.
What would be the best approach to use in this situation?
* Screening
* Diversion Plan
Screening has a one-to-many relationship with Diversion Plan, and both tables use identity (a.k.a., auto-increment) integers for their primary key. I've built a UX component which constists of a series of panels. The first panel is a list of the user's screenings (along with an 'Add' button), followed by a series of panels that let's the user edit whatever fields of the screening they want to edit. On one of thse panels, I want the user to be able to add Diversion Plans to the Screening and edit them.
As far as I can tell, there seems to be two ways to do this: use Repeating Sections or use a List Control with the "Open a UX Component to Edit Record in List Control or Enter a New Record" action.
Using the List Control solution would be ideal, because it's better optimized for a mobile interface. However, I'm not sure this approach will work because, if a user creates a new Diversion Plan for the Screening, how does the new Diversion Plan get linked back the Screening? Screening's ID wont necessarily be known yet because the Screening may not have been saved the server yet. Am I stuck with using a Repeating Containers? Should I switch to using an ID that can be generated client-side, like a GUID perhaps? Does AlphaAnywhere somehow handle this for you already?
Also, the client has expressed that they'd like this application to be offline-capable, if that makes a difference.
What would be the best approach to use in this situation?
Comment