Quick Start: Generate a master-detail mobile app
This quick start guides you through generating and running a simple mobile app with a master-detail relationship between two forms.
Important: This quick start assumes you have configured Genero Mobile to run an app to a
mobile device or emulator. See Configure for Android or Configure for iOS to set up your mobile device or emulator.
In this quick start you model a common type of master-detail based on a one-to-many relationship in the officestore database; where a user in the "account" table can have many orders in the "orders" table.
The common pattern on mobile for a master-detail relation is to have two forms, one for the master and another for the detail. The relation entity between the forms filters on keys that are common: account (primary key equal to userid) joins on orders (with foreign key equal to userid). The detail is usually edited in a separate form because on a mobile device there is not enough space.
Tip: Run the "MobilePatterns" demo to see a type of master-detail known as
"List-Detail", which uses the "account" table as both master and detail. It is recommended to also
explore this demo for different ways to use the various property settings on relations and entities
in the BA diagram. For more information on mobile demos, see Genero mobile app demos.