Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
73:workspaces [2019/03/25 16:47] emr73:workspaces [2020/09/22 12:29] – [Manage Workspaces] cafs
Line 1: Line 1:
 ====== Manage Workspaces ====== ====== Manage Workspaces ======
 +
 +{{youtube>N0OTilCKsgs?large}}
 +
  
 ===== Manage the Workspace Tree ===== ===== Manage the Workspace Tree =====
Line 13: Line 16:
 Workspaces can now have specific attributes. Administrators can globally define possible attributes via the ''Administration > Workspaces > … > Configure Workspace Attributes'' menu in __any__ workspace: Workspaces can now have specific attributes. Administrators can globally define possible attributes via the ''Administration > Workspaces > … > Configure Workspace Attributes'' menu in __any__ workspace:
  
-[[{{:73:workspaceattributes-listattributes.png?direct&798x217}}|]]+{{  :73:workspaceattributes-listattributes.png?direct&798x217  }}
  
 Attributes can be of type string or selection. Here is an example of how to define a selection and its possible values: Attributes can be of type string or selection. Here is an example of how to define a selection and its possible values:
  
-[[{{:73:workspaceattributes-defineselection.png?direct&799x416}}|]]+{{  :73:workspaceattributes-defineselection.png?direct&800x416  }}
  
 After defining the attributes, they can be used in individual workspaces. To set an attribute to a specific value for a workspace, use the ''Edit'' menu for that workspace and switch to the ''Attributes'' tab: After defining the attributes, they can be used in individual workspaces. To set an attribute to a specific value for a workspace, use the ''Edit'' menu for that workspace and switch to the ''Attributes'' tab:
  
-[[{{:73:workspaceattributes-selectattributes.png?direct&800x276}}|]]+{{  :73:workspaceattributes-selectattributes.png?direct&800x276  }}
  
 In Stages 7.3, the workspace attributes can be used in scripts, e.g. to select only a specific set of workspaces: In Stages 7.3, the workspace attributes can be used in scripts, e.g. to select only a specific set of workspaces:
  
-<code>var workspace = stages.getProjectByPath(workspacePath);+<code> 
 +var workspace = stages.getProjectByPath(workspacePath);
 var modelYearAttribute = workspace.getAttribute("modelYear"); var modelYearAttribute = workspace.getAttribute("modelYear");
 var modelYearAttributeValue = modelYearAttribute.getProperty("databaseValue"); var modelYearAttributeValue = modelYearAttribute.getProperty("databaseValue");
Line 32: Line 36:
    ...    ...
 } }
- 
 </code> </code>