Modifying Fields

Your collection has a set of fields that you defined when you first created the collection. This set of fields - their names and data-types - is called the collection's schema. But the schema is not fixed. You can change it at any time. In particular, you can:

(Note: The order of fields is not part of the schema. You set the order in which fields are displayed - both when viewing the collection as a list and when viewing an individual record's item details - through menu choices on Recollector's Options menu.)

To modify your collection's schema, pick Edit > Modify Fields or Image Directory from Recollector's menu. This will bring up the Modify Fields dialog.

View the Modify Fields dialog ...

The list of fields is shown in the order in which the fields appear in the Item Details view. If your collection contains many fields, you may find it easier to locate a particular field name if the fields are ordered alphabetically. Turn on the A-Z checkbox above the list to re-order the field names alphabetically. (The state of the A-Z checkbox is remembered within a session, and if you invoke Modify Fields more than once in a session, the last setting for this checkbox will be restored when you return to this dialog.)

To modify a field's name or its data-type, select the field in the list and click the Modify field button. A field's name can be as simple ("Price") or as complicated ("Date of last official valuation") as you want. (However, a very, very long field name might result in a somewhat awkward visual layout for the display of the collection's data.) If you enclose a field name in parentheses - for example: (Image) - this will suppress the display of the field name in the Item Details view. This is often appropriate for image-data fields, since thumbnail images are usually self-explanatory, and don't need a label in front of them. The collection templates provided by Recollector follow this practice of putting parentheses around the name of fields whose data-type is image/audio/video.

You can also specify a default value for a field. If you do so, then when you add a new record, the field will be initialized with the default value. This can be particularly useful with fields that use an associated picklist, since you can cause the picklist to be initially set to the most commonly occuring value.

View the Modify Field dialog, and information on Recollector's data types ...

To add a new field, click the Add a new field button, and specify a name, data-type for the new field, and, if you want, a default value. (Expand the section just above [View the Modify Field dialog, and information on Recollector's data types] for a view of the dialog - which is the same, for adding new fields, as for modifying existing fields - and for information on Recollector's data types.)

Special default values for Date fields: If you specifyToday or Updated as the default value for a Date field, then, when you add a new record, this field will be initialized to today’s date. If you specify Updated as the default value for a Date field, then, when you edit an existing record and make any changes to the record, when the record is saved, the Date field whose default value is Updated will have its value automatically changed to today's date. This allows you to have a field that automatically keeps track of when a record was last modified. If you manually change the Date field’s value in the editor, your manual change will be preserved, and automatic updating of the field will not occur. This allows you to manually correct an incorrect last-modified date. Note: No more than one Date field in a collection should have a default value of Updated.

To delete a field, select a field in the list and click the Delete field button. You will be warned that deleting a field will result in the loss of any data values in that field that currently exist in records in your collection.

You can also add derived fields to your collection. A derived field is like a formula in a spreadsheet: rather than representing a single data value, a derived field contains a formula for computing a value from the values in other, non-derived, fields in the record. Compared to spreadsheets, Recollector's formulas - referred to in the program as derivations - are very simple and much more restricted. Derivations can only refer to numeric-type fields (which includes currency, dimension and numeric fields) or to date fields.

Here are some simple examples of how derived fields can be useful:

View the Add New Derived Field dialog, and information on how to use it ...

The Modify Fields dialog also lets you:

When you exit from the Modify Fields dialog, by clicking the OK button, you will return to the collection window, where you will be able to see the schema changes that you have just made.