4.7.3.1.3.  Display condition for parts selection - Colored catalog index - plinkgroups.cfg -> Block [Role_name] -> Key "CONDITIONTREE"

Directories and projects in the catalog index are colored in green or semi-transparent according to the condition under Display condition for parts selection.[63] Green means that at least one row in a project meets the condition under CONDITIONTREE or Display condition for parts selection. Green is transferred to the top (on all hierarchically higher directories). Semi-transparent means that no row of any project meets the condition.

Catalog index with green and semi-transparent directories and projects

Catalog index with green and semi-transparent directories and projects

When activating the preferred rows function via button Preferred rows on/off all semi-transparent projects and directories are hidden.

Example:

Setting in configuration file $CADENAS_SETUP/plinkgroups.cfg

[Note]Note

Please use SQL syntax for this setting.

[Role_name]
CONDITIONTREE=(LINKTABLE.ERP_PDM_NUMBER<>'') AND (ACTIVE_STATE=1)

Meaning: The ERP number is not equal empty, in other words available AND the column ACTIVE_STATE has the value 1 (= released).

Setting under PARTadmin -> category Roles -> tabbed page General -> Display condition for parts selection

[Note]Note

No entry in the key CONDITIONTREE or Display condition for parts selection [a] is according to:

CONDITIONTREE=(LINKTABLE.ERP_PDM_NUMBER<>'')

[a] Does not work in Oracle DB. For example, use something like "LENGTH(ERP_PDM_NUMBER)>0".

[Note]Note

Display condition for parts selection only works, if there are parts with ERP number in the respective directories!

-> Effect in PARTdataManager:

If the filter Preferred rows on/off is activated then only those directories and projects are displayed which contain parts which meet the condition, thus the green ones.

Preferred rows function off: All directories and projects are displayed.

Preferred rows function off: All directories and projects are displayed.

Preferred rows function on:

Preferred rows function on:

More examples:

[Note]Note

For the declaration of the column also state the table in addition (ERPTABLE or LINKTABLE).

You can find the corresponding table in the Configure dialog box.

Example:

LINKTABLE.ACTIVE_STATE

Interaction with other settings

[Tip]Tip

Normally it makes sense to use the same condition for Preferred ranges and Display condition for parts selection. See Section 4.7.3.1.2, “ Preferred ranges - plinkgroups.cfg -> Block [Role_name] -> Key "PREFRANGE" ”.

Example: Preferred ranges and Display condition for parts selection both require the existence of an ERP number.

Example: Preferred ranges and Display condition for parts selection both require the existence of an ERP number.



[63] Settings under COLORCONDITIONTREE or Status colors for catalog index override and possibly result in a multi-colored index tree (see Section 4.7.3.3.2, “ Status colors for catalog index - plinkgroups.cfg -> Block [Role_name] -> Key "COLORCONDITIONTREE<number>" ”).

If the option under PARTlinkManager -> Extras menu -> Configure ERP environment -> Assign linked parts in the parts selection is deactivated, then the index tree is displayed plain-colored.