Setup > General parameters > Personalization > Screens > Conditional style assignment 

This function is used to assign conditional styles to screen fields , which affect the contents of these fields as a function of the conditions. This is carried out by applying presentation styles that make it possible to modify, the font, the colour, the background colour, the size and the effects (underline, italic, bold, barred...) of the field.

It should be noted that certain style change limits exist for the "greyed-out" or display only fields. They are described in the documentation associated with styles.

Prerequisite

SEEREFERTTO Refer to documentation Implementation

Screen management

Entry screen

Presentation

After having selected a screen to customize, a list of fields existing in the screen is displayed in the grid. It is therefore possible to associate a conditional presentation style with each of them . If no style is used, the default style for the field is used. It is determined, in the order of priority, by :

  • A possible generic style if the field is described in the dictionary as being mandatory, or having a selection window, or a tunnel, or if it is possible to enter calculation formulas.
  • The default character set associated with the fields (on the client workstation, it is parameterized from the general menu by Tool / Options).

Close

 

Fields

The following fields are present on this tab :

Block number 1

The code for the screen whose fields need to be affected is entered here. The editable fields appear then in the following grid.

  • Description (field COMMENT)

Title associated with the previous code.

Grid

  • No. (field NUMLIG)

 

  • Field (field ZONE)

 

  • Description (field INTIT)

Title associated with the previous code.

The conditional style that is to be assigned to the screen field must be entered here.

Close

 

Important notes

This function works on the screen structure that is being modified and the saving of the modifications leads to an automatic re-evaluation of the screen, the window and the associated process in all the folder languages (a box signals that the compiling is underway is displayed).

When wanting to use this functionality :

  • the first thing to understand is the screen code that is to be re-parameterized. The simplest way to do this is to set in enter mode on one of the fields in the screen in question, then use the function Field info, accessible either from the general help menu or by using the button . The screen that is displayed carries the title Field XXX / Screen YYY, and this provides access to its information.
  • it is necessary to be careful not to use this function in a screen automatically generated by means of transactions (a revalidation of the corresponding transactions will lose the modification). In this case it is necessary to modify the screen templates used by the transaction, and then revalidate the transactions that inherit the characteristics parameterized in this way.

This function is a parameterization. This signifies that the modifications carried out in this case remain even if there is a version change. In fact, as standard, no control table, no access code, nor conditional style is associated with field in the screen, even if this information is part of the screen description. They are no longer displayed by any patch.

Error messages

The only error messages are the generic ones.

Tables used

SEEREFERTTO Refer to documentation Implementation