powered by CADENAS

Manual

Manual

5.11.1.2.  Preferred ranges - plinkgroups.cfg -> Block [Role_name] -> Key "PREFRANGE"

[Note] Note

Preferred ranges is role dependent, so has to be defined for each role separately.

Function: You can activate/deactivate the display of preferred ranges via button Preferred rows on/off . If the function is on, then all table rows (characteristics) which do not meet the set condition are hidden.

Setting in configuration file $CADENAS_SETUP/plinkgroups.cfg:

Example:

[Note] Note

For this setting please use Fortran syntax.

[Role_name]
PREFRANGE=((ERP_PDM_NUMBER.NE.'').AND.(ACTIVE_STATE.EQ.1))

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

Setting in user interface under PARTadmin -> category Roles -> tabbed page General -> Preferred ranges

-> Effect in PARTdataManager:

Preferred rows off: all rows are displayed. The rows 6 and 10 are not according to the preferred rows condition und so are hidden when activating the function. See next figure.

Preferred rows off: all rows are displayed. The rows 6 and 10 are not according to the preferred rows condition und so are hidden when activating the function. See next figure.

Preferred rows function on

Preferred rows function on

More examples:

  • Standard entry

    PREFRANGE=(ERP_PDM_NUMBER.NE.'')

    Only those datasets are displayed which have an ERP number.

  • PREFRANGE=PRICE.LT.0.4

    Only those datasets are displayed whose price is equal or less than 0.4.

  • PREFRANGE=ACTIVE_STATE.EQ.1 

    Only those datasets are displayed whose Active status is equal 1 (‘1’ stands for „Released“.)

  • PREFRANGE=REQUESTED_STATE.EQ.2 

    Only those datasets are displayed whose Requested status is equal 2. (‚2’ stands for „Expired“.)

  • ACTIVE_STATE.EQ.1).AND.(BLNNR.NE.'')

    Only those datasets are displayed whose Active status is equal 1 (='released') AND which have an entry in the column “BLNNR“.

  • PREFRANGE=((ERP_PDM_NUMBER.NE.'').AND.(PRICE.LT.4.0))

    Only those datasets are displayed which have an ERP number AND a price equal or lower than 4.

  • (CONTAINS(ERP_PDM_NUMBER,'AA').EQ..TRUE.)

    Only those datasets are displayed whose ERP number contains the substring 'AA'.

  • (CONTAINS(ERP_PDM_NUMBER,'AA').EQ..FALSE.)

    Only those datasets are displayed whose ERP number does not contain the substring 'AA'.

[Tip] Tip

Normally it makes sense to use the same condition for Preferred ranges and Display condition for parts selection.

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.

[Note] Note

The effect is comparable with Viewing condition for table rows but here in contrary, it is not restrictive. It cannot be switched off by the user. Compare Section 5.11.1.4, “ Viewing condition for table rows - plinkgroups.cfg -> Block [Role_name] -> Key "TABRESTRICTION" ”.