Edit visible expression


Contents

Related pages


Control visibility of standard fields

→ For this purpose so called expressions are used.

Click in mask editor into a field.
In local menu use the item Edit visible expression.
A new window opens.
Here you can define a term.

image2022-3-22_16-20-20-20240327-072755.png

Example: if (fk_ort_mc_vers = 'DEBRE' OR fk_hafen_mc_vers =[DEHAM], 1, 0)
Explanation: IF (Place of receipt = DEBRE OR Port of loading = DEHAM THEN visible, otherwise invisible.)

Construction:
If (Condition, True, False)
True stands for visible, false for invisible.

The simplest expression is the following:
If (1=1, 1, 0)
If 1=1 then visible, otherwise not visible.

Note: Operators like >= (greater or equal), = (equal), <= (less than or equal), =! (not equal) are possible.

Then, use in local menu the item Finish mask editing. Click in the saving dialog in Yes.

Do not use in environment menu the function File → Save. The expression is not saved then!

Global placeholders

Global placeholders can also be used.
→ For a list, see entry insert placeholder in the local menu of the additional mask fields.

Example: if (MANDANT = '001', 1, 0)
Explanation: The field is only displayed if the current client is 001.

Hint: Unlike the mask additional fields the global placeholders are not enclosed in square brackets.

Edit visibility

Here the field is switched visible or invisible.

image2022-3-22_16-34-16-20240327-072811.png

You can also refer to another field and make the field editable depending on it: Only the entry in another field makes the field editable.

Example: CC_eawb=Y causes the field to be disabled until the checkbox of the field CC_eawb = Y, i.e. active is set.