powered by CADENAS

Manual

Manual

4.10. Basic design of "new ident-no." dialog box - erpcustom.cfg -> Block [USERDIALOG]

General information:

  1. Settings for the dialog box new ident-no. are used both for calling by Add dataset to link database and by Request ERP number per e-mail .

    • Add dataset to link database: A field for the ERP number is automatically added to the basic dialog.

      Add dataset to link database: A field for the ERP number is automatically added to the basic dialog.

    • Request ERP number per e-mail: The respective fields from plinkcommon.cfg or plinkgroups.cfg are automatically added to the basic dialog.

      Request ERP number per e-mail: The respective fields from plinkcommon.cfg or plinkgroups.cfg are automatically added to the basic dialog.

  2. The dialog can be designed for all users in the same way or user-specific.

    • Common dialog:

      Just use the block [USERDIALOG].

    • User-specific dialog:

      Use the following syntax.

      Example:

      [USERDIALOG(Admin)]
      keys....
      [USERDIALOG(Designer)]
      keys...
      etc.

      May be a certain field is interesting for the administration, but not for the designer. So you can leave out the entry for a specific role.

What is the structure of the dialog?

  • Some rows such as "Standard Title", "Standard Number" or "Dimension" for example ensure a correct identification of a part.

  • Any other rows may be added optionally when building the dialog box. In this way values can be selected or entered by free input and then be transferred into the LinkDB.

Dialog "new ident-no."

Dialog "new ident-no."

Syntax:

Concerning key naming, oriente at general variable names such as NTLANG, NN, LINALANG, NB or LinkDB variable names.

For each key a list of values has to be specified.

In the following the field values (separated be the character defined under "SEPARATOR") are listed.

  • InternalVar=VarPLinkInternal:

    (in order to avoid any problems, normally use the key name again here)

  • StaticText: Description text of input row

  • required:

    Value range: 0/1

    • 1 (default): entry required

    • 0: no entry required

  • Add2DB: Value entered in LINKDB

    Value range: 0/1; default 1

  • default: Default value (empty by default)

  • freeinput: Visibility of respective row.

    Value range: 0/1

    • 0: Row not visible

      Makes sense for Standard Title, Standard Number, Dimension or automatically generated ERP number for example.

    • 1: Necessarily set for all rows with values which have to be changed.

  • ShowInDialog: Visibility in the dialog box

    Value range: 0/1

    • 1 (default): The respective row is visible.

    • 0: The respective row is not visible (but a default value can be entered in the LINKDB, however it will not be shown in the dialog box)

  • selectionfile: File (e.g. material_assign.cfg) containing options, which are displayed in a combo box.

    Also see material_assign.cfg.

    Exemplary content of the stated file:

    [*]
    0=
    1=8.8
    2=10.9
    3=12.9

    For a certain standard number, other default values may be defined as well.

    Exemplary content of the stated file:

    [norm/din_en_iso/stifte/scherstifte/din_1.prj]
    
    1=1.4301 (V2A)
    2=1.4571 (V4A)

    Also see Abschnitt 4.11.2, „erpcustom.cfg -> Block [dialogOnExport] - Automatische Generierung der ERP-Nummer: Exportdialog für Werkstoff und andere Felder ja/nein“.

  • combotype:

    Value range:

    • full: it is possible both to select an option or to enter a value

    • static (no own values may be entered)

    • button

    • empty (entry of own value possible)

  • regular expression

    Example:

    [0-9]*

  • Message if Regexp fails

    Example:

    Only numbers allowed (no comma)