Container Templates

The Container Templates preference is used to record a list of container templates in the system. These are found when adding a container to the Samples area of iGene. The choice of values are selected using an autocomplete or dropdown list.

Container Templates

Location

Container Templates list

The table of Container Templates will display the code, name, and status for the container template.

Configuration

When adding or editing a container template, users are presented with the below form to complete. Always press Save in the bottom right-hand corner of the browser after adding or editing a container template.

Edit Container Template

Code (Required, Unique)

A unique code for the container template. This can be the same as the name but must be unique throughout the entire system.

Name (Required)

A name for the preference. It is advisable to keep this unique.

Number of Positions (Required)

The number of positions in the container template.

Accepts (Required)

A dropdown list of container types that can be added to the container template.

Active

A checkbox to activate/deactivate an entry. If the preference is not active, it will not be selectable in any drop-down lists.

Label Script

A script that will be run when a label is generated for a container using this template. This script can be used to generate a label based on the container’s index and size. The script should return a string that will be used as the label for the container. The script should be written in Groovy.

On Added

A script that will be run when a container is added to the system using this template. This script can be used to perform actions when a container is added, such as setting the container’s status or adding samples to the container. The script should be written in Groovy.

On Removed

A script that will be run when a container is removed from the system using this template. This script can be used to perform actions when a container is removed, such as removing samples from the container. The script should be written in Groovy.