Add the following fields: First Name, Last Name, Age, Marital Status, Street, City, Phone, Email, Website.
Add a few items.
Localize the data type. Localize the data items where necessary.
TASK 2
Apply a validation rule on the Age field that allows integers between 21 and 75.
Apply a validation rule on the Email field to allow only well-formed email addresses.
Apply a validation rule on the Website field to allow only well-formed URLs (starting with “http://” and including valid top-level domains such as “.com”)
TASK 3
Create another data type called “Instant Messaging”.
Add the field and name it “Application”.
Add the following data items to the data type: ICQ, MSN, Skype, Yahoo, AIM.
In the data type created in Task 1, add another field of the String type: IM.
Reference the Instant Messaging data type as its field type.
TASK 4
Edit the Contacts data type and select the IM field.
Change its type from Data Reference to String.
Replace the default TextBox widget with DataIdMultiSelector.
Set the Data type to selectfrom property to the Instant Messaging data type.
Save the data type, add an item and see what widget is used for the IM field.
TASK 5
Edit the widget for the IM field again and set its Compact UI property to Compact.
Save the data type, add an item and see what widget is used for the IM field now.