## Adding components

##### Before you start

In general, you can add as many components (for example, contacts, messages, to-dos, appointments and so on) to the script as needed. Note the following things:

- Working with contact sets is a special case compared to other component items. For more information, see Contact set.
- Selecting random values for component items can save you a lot of time in the creation of the script. For a description, see Random component values.

To add components to the script, follow these basic steps:

1. From the Select component to add list box, select the item of your choice.

2. Click Add.

   The dialog for the selected component type is displayed.

3. In the Amount field, type in the amount of entries you want to create of this component type.

   If you leave this field empty, one entry is created by default.

4. (Optional), add new contact set by clicking the Add new Contact-set button.

   Note: Dialogs for components that can have reference to Contact-set has this button for creating Contact-Sets. Those components are: Contact, Messages (SMS, MMS, AMS, Email, Smart Message, IR message, BT message), Appointment, and Contact Group.

5. To enter the component values, do any of the following:
   - Enter the values of your choice in the Item value field, and how many of these items should be created in the Amount field.

     Note: When filling in the values manually, follow the instructions in the dialogs to enter the data in correct format.

   - The length of an entry for random values can be selected from the Mode drop-down list as follows:

     - Edit mode: User can edit the field data
     - Random – Default length: Random data, default length
     - Random – Custom length: Random data, user edits the data length
     - Random – Max length: Random data, maximum length for the data
     - Increase for each copy: applied only with phone number fields in contacts, messages and logs. This mode is used together with the "amount" attribute. When the Increase for each copy mode is selected, phone number will increase for each copy of component created. For example, if phone number "12300" is given, the first copy will have phone number "123000", and the second copy will have "12301", third "12302" and so on. If the Amount attribute of Phone number is used, each copy will have a different phone number.
   - Generate random values for all items at once: select either Default or Max, and click Set random.

6. To save the script, select File > Save.

##### Useful to know

The .creatorxml file is used as input for the S60 Creator tool that works on an S60 device or an emulator. You can transfer the Creator file into the device in the same way as any other file, for example, via a USB cable or a Bluetooth connection. On the device, the default location of the file is in c:\data, or at the root of the memory card.

##### Related tasks

- Modifying components

##### Related references

- Generic component reference
- Contact components
- Message components
- Calendar components