Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionNext revisionBoth sides next revision | ||
73:workspaces [2019/03/25 16:46] – created emr | 73:workspaces [2019/03/25 16:50] – emr | ||
---|---|---|---|
Line 11: | Line 11: | ||
===== Use Workspace Attributes ===== | ===== Use Workspace Attributes ===== | ||
- | ... | + | Workspaces can now have specific attributes. Administrators can globally define possible attributes via the '' |
+ | |||
+ | {{ : | ||
+ | |||
+ | Attributes can be of type string or selection. Here is an example of how to define a selection and its possible values: | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | After defining the attributes, they can be used in individual workspaces. To set an attribute to a specific value for a workspace, use the '' | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | In Stages 7.3, the workspace attributes can be used in scripts, e.g. to select only a specific set of workspaces: | ||
+ | |||
+ | < | ||
+ | var workspace = stages.getProjectByPath(workspacePath); | ||
+ | var modelYearAttribute = workspace.getAttribute(" | ||
+ | var modelYearAttributeValue = modelYearAttribute.getProperty(" | ||
+ | |||
+ | if (modelYearAttributeValue == " | ||
+ | ... | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | Future versions of Stages will make use of those attributes to allow end users to easier find their workspaces. | ||