Quickstart building a web application (Web/Mobile)
Lesson 6: Create a Person Select View
Now that the Zoom View is created we can create the Select View. The Select View is needed to get into the Zoom View. In this lesson we’re going to create the Person Select View.
Click Create New… and select the Mobile Select Wizard.
The first two pages of the wizard give some information about the wizard. Click Next.
Enter for the object name oSelectPerson and for the file name SelectPerson. Change the description to Persons.
On the next page of the Wizard select Person as the main Table.
On the next page select the Entry Fields. In this Quickstart we just select these three Fields: - LastName - FirstName - City
In the next step we can set up navigation options from the Select View, we can choose between main zoom, which means that it will go from the select view to a single zoom view. Child select, which means that it will go from this select view into another select view. Or both, which will provide both navigation options. Select both.
Although we selected ‘both’ we will create one right now and implement the other one later.
Click on the button in Navigate to Zoom View and choose ZoomPerson.
On the next page we can change the layout of the Select View. Check the checkbox for City, that means it will be on another line than LastName and FirstName.
Make the span for City 2, so it will span both FirstName and LastName.
Change the style of LastName and FirstName to Caption and the style of City to Detail.
Click Adjust and Display for a preview.
Finish the wizard.
The generated code is shown.
Run the Application by clicking the Run button or F5.
Sign in with Admin, Admin.
Go to the menu. Under View it now shows Persons.
The database has no data yet. Add a new record, by clicking the New button.
Enter this information: - Last name: Wibier - First name: Harm - Address: Lansinkesweg 4 - Zip: 7553 AE - City: Hengelo
Save the record.
A single record has been created.
Create another record with this information: - Last name: Meeley - First name: Stephen - City: Richmond
Save the record.
Add another record: - Last name: Tuohy - First name: John - City: San Diego
Save the record.
As you can see, the application now has three records.
Click on the info button to open an existing record.