4.7.3.3.1.  Status icons for table - plinkgroups.cfg -> Block [<role name>] - key "BMPCONDITION<number>"

[Note]Note

Status bitmaps for tables [Status indicating bitmaps for table view] (status icons) are role-dependent, so that each role must be defined separately.

Parts (characteristics) can be marked in many different ways in the characteristic attribute table and thus convey different messages: "Preferred part", "Export possible", "Available at different locations", etc. Not only the standard red-green status icons are possible, but any colors and symbols can be used.

The status icons (e.g. ) can only have an information function or be linked to an additional export restriction [Export restriction]. See below.

Status icons in the PARTdataManagertable view - example with standard status icons in green/red. Here, the status icon also has a signal effect for the export option. Parts for which the status icon shows green can be exported to the CAD system. Parts for which the status icon is red cannot be exported to the CAD system. When hovering over the status icon, a tooltip appears (if available).

Status icons in the PARTdataManagertable view - example with standard status icons in green/red. Here, the status icon also has a signal effect for the export option. Parts for which the status icon shows green can be exported to the CAD system. Parts for which the status icon is red cannot be exported to the CAD system. When hovering over the status icon, a tooltip appears (if available).

Another meaningful rule could be:

Dunkelgrün =  Bereits verwendet an allen Standorten
Mittelgrün =  Bereits verwendet an zwei Standorten
Hellgrün   =  Bereits verwendet an einem Standort
Gelb       =  An keinem Standort verwendet, aber mit ERP-Nummer
Rot        =  Entspricht keiner Vorgabe (evtl. kombiniert mit Exportbeschränkung)

[Note]Note

Every rule which can be derived from table information (project information) is possible!

Status indicating icons in the PARTdataManager table view - Example with extra icons in different colors and specific messages. When moving the mouse over an icon a tooltip is displayed (if provided).Status icons extended Status icons extended

Status indicating icons in the PARTdataManager table view - Example with extra icons in different colors and specific messages. When moving the mouse over an icon a tooltip is displayed (if provided).

Status indicating icons in the PARTdataManager list view

Status indicating icons in the PARTdataManager list view

Preconditions

Copy the used bitmaps into the $CADENAS_SETUP/bitmaps directory.

Maximum bitmap size is 16 x 16 px.

You can assign as many conditions to status lights (colors and symbols) as you wish.

Configuration

Settings via configuration file $CADENAS_SETUP/plinkgroups.cfg:

Block [<role name>], key BMPCONDITION<NUMBER>, first value contains condition, second value contains bitmap path, third value contains tooltip (optionally)

Example 1:

[LOC1]
BMPCONDITION0="((LOC1.EQ.'x').AND.(LOC2.EQ.'x').AND.(LOC3.EQ.'x'))","$(CADENAS_SETUP)/bitmaps
 /state_green_circle_3.png","ALL LOC"
BMPCONDITION1="((LOC1.EQ.'x').AND.(LOC3.EQ.'x').AND.(LOC2.NE.'x'))","$(CADENAS_SETUP)/bitmaps
 /state_green_circle_2.png","2 LOC"
BMPCONDITION2="((LOC1.EQ.'x').AND.(LOC2.EQ.'x').AND.(LOC3.NE.'x'))","$(CADENAS_SETUP)/bitmaps
 /state_green_circle_2.png","2 LOC"
BMPCONDITION3="((LOC2.EQ.'x').AND.(LOC3.EQ.'x').AND.(LOC1.NE.'x'))","$(CADENAS_SETUP)/bitmaps
 /state_green_circle_2.png","2 LOC"
BMPCONDITION4="((LOC1.EQ.'x').AND.(LOC2.NE.'x').AND.(LOC3.NE.'x'))","$(CADENAS_SETUP)/bitmaps
 /state_green_circle_1.png","1 LOC"
BMPCONDITION5="((LOC2.EQ.'x').AND.(LOC1.NE.'x').AND.(LOC3.NE.'x'))","$(CADENAS_SETUP)/bitmaps
 /state_green_circle_1.png","1 LOC"
BMPCONDITION6="((LOC3.EQ.'x').AND.(LOC1.NE.'x').AND.(LOC2.NE.'x'))","$(CADENAS_SETUP)/bitmaps
 /state_green_circle_1.png","1 LOC"
BMPCONDITION7="(ERP_PDM_NUMBER.NE.'')","$(CADENAS_SETUP)/bitmaps/state_green_circle_0.png",
 "NO LOC"
BMPCONDITION8="(ERP_PDM_NUMBER.EQ.'')","$(CADENAS_SETUP)/bitmaps/state_red_circle.png",
 "NO STD"

Meaning: If the column "LOC1" AND the column "LOC2" AND the column "LOC3" each contain an 'x', then the condition is fulfilled. The information icon defined in the Bitmap column is then displayed.

You can optionally enter a tooltip [Tooltip]. It is best to enter a placeholder term. This term is automatically entered in the translation table on the Translations tab page. Enter translations in any number of languages there. If you move the mouse pointer PARTdataManager the mouse pointer over a status icon, the translation text is displayed.

[Tip]Tip

If you like to comprehend the example, please see the settings in the PLDBDEMO database, in the role "LOC1".

Setting in the user interface under PARTadmin -> Category Roles -> Display tab -> Status colors for table [Status indicating bitmaps for table view] dialog area:

[Note]Note

The conditions are prioritized. First (above) set conditions have higher priority. This means: If several conditions are fulfilled at the same time, then that condition is "winning", which, in the list of conditions, is at the uppermost position.

Change the position of a line in the following way: Select the desired line and move it with pressed mouse button up or down.

Remove lines after selection using the Del key.

Example 2:

Setting in the configuration file $CADENAS_SETUP/plinkgroups.cfg:

[DUMMY]
BMPCONDITION0="((ERP_PDM_NUMBER.NE.'').AND.(LOC1.NE.'x').AND.(LOC2.NE.'x').AND.(LOC3.NE.'x'))",
"$(CADENAS_SETUP)/bitmaps/linkdbdemo/department/trafficlight_location/rrr.png",
"USA: not available, Germany: not available, Japan: not available"

[Tip]Tip

If you like to comprehend the example, please see the settings in the PLDBDEMO database, in the role "DUMMY".

Setting in the user interface under PARTadmin -> Category Roles -> Display tab page -> Status colors for table [Status indicating bitmaps for table view] dialog area

Example 3 with complex condition:

Syntax with CONTAINS, FALSE, TRUE and linking several conditions:

(CONTAINS(NB,'DIN').EQ..FALSE.).AND.(CONTAINS(NB,'schraube').EQ..TRUE.).AND.D.LE.8

Using 'AND' the following three conditions are linked:

  • The NB may NOT contain the string 'DIN'.

  • The NB MUST contain the string 'bolt'.

  • The variable 'D' has to be lower or equal than 8. ('LE' stands for "lower or equal than")

A blue star is chosen as icon.

Condition in PARTadmin

Condition in PARTadmin

Result in PARTdataManager: ISO bolts with diameter lower or equal than 8 are marked with the chosen icon.

Result in PARTdataManager: ISO bolts with diameter lower or equal than 8 are marked with the chosen icon.

Possible combinations of export condition [Export condition] and status bitmaps for table [Status indicating bitmaps for table view]

You can combine the settings under the tab page General -> Export condition with those under the tab page Display -> Status bitmaps for table [Status indicating bitmaps for table view]:

Status bitmaps for table [Status indicating bitmaps for table view] can also be used if export condition [Export condition] is not used.

Status bitmaps for table [Status indicating bitmaps for table view] and export condition [Export condition] are two fundamentally different functions, but they can interact.

The following shows the possible combinations:

  • Export condition used in the General tab AND no Bitmaps function:

    => The red-green status bitmaps are shown.

    I.e: If the condition entered under Export condition is fulfilled, the green status display appears. If not, the red status display appears.

    See Section 4.7.3.1.7, “ Export condition - plinkgroups.cfg -> Block [role name] -> Key "EXPORTRESTRICTION" ”.

  • Export condition in the General tab not used AND no entries under Bitmaps:

    => No status lights are shown.

  • Export condition in the General tab not used AND Bitmaps function used:

    => You can use any number of bitmaps (colors). There is no export restriction.

  • Export condition used in the General tab AND Bitmaps function used:

    => You can use any number of bitmaps (colors). There is an export restriction. Only parts that meet the export condition may be exported. It is important to ensure that the conditions under Export condition and the condition under Bitmaps interlock accordingly.

    [Note]Note

    If conditions are defined and none of the conditions apply, the bitmaps are grayed out.

[Note]Note
Display tab page -> Status bitmaps for table [Status indicating bitmaps for table view]

overrides the standard icons (green/red), which result from the condition under

General tab page -> Export condition

The extent to which an export restriction exists depends on the setting under the General -> Export condition tab. A detailed description of how to define the rules can be found on the Section 4.7.3.1.7, “ Export condition - plinkgroups.cfg -> Block [role name] -> Key "EXPORTRESTRICTION" ” tab page.