First Guide to SQL Anywhere Studio
PART 2. Getting Results with SQL Anywhere Studio
CHAPTER 7. Creating Forms with InfoMaker
Now you will use the form to add a new contact to the database.
Click the Run button in the PainterBar.
Your finished form displays with data in place. The report on the form gives you a way to see all your contact data.
Click the Add a contact button in the form.
An empty form displays. You will use this form to enter a new contact.
The cursor is in the Id box, but you don't know the next available number. You will look in the report to see what number was used last.
In the report window, use the scrollbar to scroll down to the last row of the report and check the value in the Id column.
If the data has not been changed since installation, the value will be 60. So the next available number is 61.
Click the Id column and type 61.
Press tab and type Carter for Last Name.
Press tab and type Jimmy for First Name.
Press tab.
Press tab and type ma for title or, if a drop down box is presented select Marketing for Job Role.
Job Role or Title? To look at the InfoMaker Getting Started tutorials see the following URL: |
Define a DropDownListBox edit style of job roles, change the column header and label to Job Role, and enlarge the display width of the column to 1.5 inches
Press tab and type Peanut Way for Street.
Press tab and type Atlanta for City.
Press tab and select GA for State (another dropdown listbox).
Press tab.
To determine what to enter for Zip, scroll the report until you find another Atlanta entry.
Then click the Zip box in the form and type the zip code you see in the report.
Press tab and type 4045557833 for Phone.
Notice that you type only the digits. The form formats the phone number. An Edit Mask edit style was defined for this column to handle the formatting. This edit style is stored in the repository.
Press tab and type 4045554291 for Fax.
This is what your screen should look like now.
Click the Save changes button in the form to update the database with the new contact.
The database is updated.
Note that the report always displays the information from the database when you start running the form. If you update the database, the report does not show the updates. To update the report, you return to the workspace and rerun the form.
Click the Design button in the PainterBar to return to the Form painter workspace.
Click the Run button again and scroll the report to the 61st row in the report.
Notice that your report has been updated.
Click the Design button in the PainterBar to return to the Form painter workspace.
Select File->Close from the menu bar.
If you haven't already saved the current version of the form, you will be prompted to save changes.
Click Yes.
This closes the Form painter. You return to the PowerBar.