Variables

Manage variable definitions and understand change constraints.

Role required: Project Management

This page covers why you cannot tighten a definition, how to replace a variable instead of changing its type, and why you should not inactivate a variable with an open query.

Changing variable definitions

Variables have constraints on what can be changed after creation:

Change typeAllowed?
Make definition less restrictiveYes
Make definition more restrictiveNo
Change data typeNo — create a new variable

Project Variables list showing variable names, codes, and groups
Project Variables list showing variable names, codes, and groups

A definition is "more restrictive" if existing data would become invalid. For example, reducing a numeric range to exclude values already entered.

Replacing a variable

To change a variable's data type:

  1. Create a new variable with the correct type.
  2. Update forms to use the new variable.
  3. Inactivate the old variable (if no data exists) or leave it for historical reference.

Inactivating variables

A variable can be inactivated to hide it from new data entry.

ScenarioCan inactivate?
Variable has no dataYes, can also delete
Variable has dataCan inactivate, cannot delete
Variable has open queryDo not inactivate

Warning: Do not inactivate a variable that has an open query attached. Resolve or close the query first.

Grid column count

For variables displayed in a grid layout, the column count is set at the Variable Group level, not the individual variable.

Related