Column: Role

From Catglobe Wiki
Jump to: navigation, search



Column: Role

Column

Role

Source

Depending on which role is selected for the column; it is the resource id(s) of the user(s) that exist with that role for the returned resource.

Automatically given column name

(Name of role as specified by role_language table)

Column type

Integer array

Resource types that use it

All except test case

How axis set information is built

This column is what we call a "search string dependent axis option". This means that the axis set for it is rebuilt each time that the resource cache is rebuilt. The reason for this is, that the number of possible option outcomes for the column is changing each time the column is updated. For this column it will not make sense if you try to update its options directly in the axis set, since these will be reset on resource cache rebuild anyway.

The axis set is built upon first extracting all the IDs that are in the created by column, then creating one option in the axis set for each unique value. The option will be named the same as the resource in catglobe that owns the ID. Let us say that the system finds the value "123" in this column. The system will then look up the resource name of the resource with this ID and create an option in the axis automatically generated for the column.

Typically the axis for this column will look something like the below:

Axis text: "Project Manager"
Math base: "{Role_Id}>"
Pct base: "{Role_Id}!=empty"

Option 1: Name="Max Mulligan (MaxLogin)"; Value="{Role_Id}==123"
Option 2: Name="Pete Maddison"; Value="{Role_Id}==124"
Option n: Name="...."; Value="{Role_Id}==...", etc.

Comment

N/A