Hello Everyone.

Today we will look in greater detail about form design and add some new components to our People form. As we discussed in the previous lesson, the form in the default app is disjointed, cluttered and awkward to use.

Look at our new form below to see the differences.

This new form introduces a ‘Progressive Look up’ for finding contacts, A Radio Choice object for showing and hiding the Rolodex and Contact browse and another conditional object. Here is what we did.

The Progressive Look up uses a calculated field called Contact in the people table.

  1. Contact Field – A calculated field which combines First and Last Contact name. Procedures are as follows.
    1. Go to your control panel.
    2. Right click on the people table
    3. Select Edit Structure
    4. Add Contact as character 35
    5. Save and close
    6. Right click on people and select Edit Field Rules
    7. Select Contact from the drop-down list.
    8. Select Extended Field type
    9. Enter the following text in the calculated exp:   Alltrim(F_Name)+” “+Alltrim(L_Name)
    10. Save and Close
    11. Right click on the people table and select utilities
    12. Select Recalculate ( this will fill in the Contact field with values of current records.)
  2. Open your People form in design mode
    1. Select Form in the menu bar
    2. Select Variables from the drop down
    3. In the session variable window add PL_Contact = ” ” and rolshow = 0
    4. Close the variable window and save the form.

Now that you have the necessary parts, you can watch the short video to see how I redesigned the form then you can do the same, or try your own layout. Have fun.