Creating Conditional Formatting Templates

Conditional Formatting templates provide examples of types of formatting that you can use. For instance default templates are provided for standard 'traffic lighting' and 'blue scale' formatting, but you can edit these or provide your own.

The default templates are available to all IJC users, but ones you change or create yourself are private to you, but not visible to others.

When you use a template to create a type of formatting the type of formatting you create (e.g. traffic lights) becomes part of the form, and will be used if other people use your form, or if the form is copied. Also, other fields can also be formatted using that type of formatting, though different rules will most likely be needed.

Creating and editing templates

Templates are defined in your IJC preferences under the visualization section. To open the preferences use Tools->Options... (on Windows and Linux) or InstantJChem -> Preferences... (on Mac). Then select the visualization section.

images/download/attachments/1805242/creatingtemplates.png

You will see the existing templates for types of formatting. You can edit or delete these, or you can create new templates using the buttons at the bottom.

Creating a new template

Click on the 'Add' button and the type of formatting editor will open

images/download/attachments/1805242/creatingtemplates2.png

Initially it has just one Category, or bin, named 'Default'. You can add or delete rules using the '+' and '-' buttons and you can specify the formatting characteristics for each category. Lets assume we were wanting to create a 'Rainbow' template that had the colours of the rainbow.

  1. Specify 'Rainbow' as the name.

  2. Add categories for 'Red', 'Orange', 'Yellow', 'Green', 'Blue', 'Indigo' and 'Violet'.

  3. Optionally delete the Default category.

  4. Click the 'Close' button and your new template is ready.

images/download/attachments/1805242/creatingtemplates3.png

Editing a template

You can edit an existing template by clicking on the 'Edit...' button. Editing a template is identical to creating one.

Note that editing a template does not affect any views that have already used that template, though you can edit the actual type of formatting that is now present in the view (e.g. change the colours)

Deleting a template

  1. Select the template to delete.

  2. Click on the Delete button.
    The template will be deleted. If the template has been used for conditional formatting in any form or grid views these will not be affected.

Once created a template can be used for conditional formatting in any form or grid view. See the Step by step guide for more detail.