The activity codes offer the following possibilities:

  • to render active or inactive the elements in the dictionary (example: tables, index, tabs, screen sections or fields...). For example, the fact of setting an activity code as active or not gives the possibility to deactivate, in the screens, certain optional fields.
  • to affect the sizing of fields in the tables.
  • to make the sizing of fields and screen section open to parameterization.
  • identify the elements developed for the standard localizations : these elements are identifies by an activity code starting with K.
  • identify the elements developed as custom and vertical. When the activity code starts with X, Y or Z, the element is considered as non standard and is therefore not affected by a standard patch. To be more precise, a standard has been established from version 5 for the X3 software range :
    • The codes starting with X are reserved for the vertical developments
    • The codes starting with Y or Z are reserved for the custom developments.

The value of the activity codes is defined in folder management. Only the codes that are not dependent on another code are entered ; the others are deducted. For more detail and in particular to consult the naming rule for the codes see the field help "Dependence"

The changing of the activity code value requires a revalidation of the folder in order taken into account these structural elements.

Prerequisite

SEEREFERTTO Refer to documentation Implementation

Screen management

This parameterization is carried out on a single tab.

Entry screen

Presentation

The detailed characteristics of the activity code are described here.

Close

 

Fields

The following fields are present on this tab :

Identifier

Enter up to 5 alpha numeric characters that identify the Activity Code. 

Be sure to follow the correct naming conventions:

Codes starting with A - V are developed in the Standard layer.

Codes starting with X are Add-ons developed by partners with a unique ID distributed by Sage.

Codes starting with Y are developed in the Vertical layer.

Codes starting with Z are for specific or unique development.

An activity code can be set to Active or Inactive, or can define the number of blocks on a screen.

This option, which must be assigned at  folder creation, makes it possible to influence the screen layout and possibly the database structure.

  • Description (field ZLIBACT)

 

Characteristics

  • Active (field FLACT)

If this check box is selected, the tables and screens or fields of these tables and screens related to this activity code can be accessed.

If this check box is not selected, the screens and tables, or their respective fields, can no longer be accessed and are not displayed.

Caution: On operation, any activity code status change requires:

  • The modification of the activity code in the folder record, from the parent folder
  • The validation of the child folder.
  • Module (field MODULE)

Select a module for the setup.

Use this field to specify if the screen has to be created in the folder database. This is the case when the module linked to the screen is active on the folder.

  • Sequence (field RANG)

Use this field to indicate the order in which the activity codes display in folder management. The activity codes depending on a formula are calculated in ascending order from this number.

  • Type (field TYP)

Use this field to select the type of activity code for the folder management.

Select Functional, Sizing, or Localization.

  • Minimum size (field DIMFIL)

Use this field to define a different value to a column compared to the proceeding column. This dimension generally corresponds to the dimension generated in Crystal Reports.

Certain table fields can display the number blocks according to an activity code. The number of blocks is often the same for a given field between the table and the screen, but sometimes there is a requirement to hide the field on the screen while keeping the block in the table.

This field is only available for Sizing type activity codes.

 
  • Maximum size (field DIMMAX)

Enter the maximum dimension for variables managed in the process.

This field is only available for Sizing type activity codes.

  • Screen size (field DIME)

Use this field to defined the number of dimensions used in the related screens and tables.

A table can be limited by a maximum and minimum size. Use the following formula to define the dimension of tables:

min(max(MIN,SCREEN),MAX).

This field can only be accessed for activity codes of theSizing type.

  • Dependency (field DEP)

Use this field to indicate the type of dependency for this activity code.

The possible values are:

None: This activity code does not depend on another activity code.

Reverse: The activity code takes the reverse value of the activity code entered in the Activity code field in the Characteristics block. If that activity code is active, the dependent activity code is inactive, and inactive if it is active.

Sizing: The activity code is composed of a root followed by a number M (1 to 9) and is associated with an activity code that can take the numeric values 1 to N. The activity code is active if the value of the associated code is greater than or equal to M; if not, it is inactive.

For example, the activity code ANA is associated by the dimension links to the codes AX1 to AX9. If ANA is set to 5, the codes AX1 to AX5 are active; the codes AX6 to AX9 are inactive.

Formula: This is used to calculate the value of an activity code as a function of an entry formula. This calculated expression can include constants, functions, and variables in the form of other activity codes. These activity codes can be the entered codes or previously calculated codes. The order of the calculation of the activity codes depends on the earlier codes defined by the rank. An activity code not acting on a dimension is set to 1 if it is active and 0 if it is inactive.

For example, if the formula given for the activity code XXX is max(XAA,XAB)XXX is active if one of the two activity codes XAA or XAB is active. If these codes act on a dimension, the dimension obtained is the maximum of the two dimensions.

 

  • Formula (field ACTFOR)

Use this field to define the formula for an activity code that depends on a formula. 

This formula can be:

  • A logical formula: if true, the activity code is active; if  false, the activity code is not inactive.
  • A numeric formula returning a positive integer value for the activity codes acting on a dimension.

Close

 

Reports

By default, the following reports are associated with this function :

 LISACT : List of activity codes

This can be changed using a different setup.

Specific Buttons

The following fields are included on the window opened through this button :

Block number 1

  • field OBJET

 

  • field CLES

 

Block number 2

  • From folder (field DOSORG)

Use this field to define the folder from which the record will be copied. The possible syntaxes are described in the Dedicated appendix.

  • All folders (field TOUDOS)

Use this option to copy the record to all the folders defined in the dictionary (ADOSSIER table of the current solution).

  • To folder (field DOSDES)

Use this field to define the folder to which the record will be copied. The possible syntaxes are described in the Dedicated appendix.

Close

This button is used to copy the record definition from or to another folder.

Menu Bar

Documentation / Paragraphs

This menu item allows access to the documentation management on the first paragraph of the documentation (if there is one) associated with the current record.

Documentation / Links

This menu item allows access to link management. It is used to define the links between the current record and other records (for example, the links between functions and parameters). These links are specific to the documentation and are used to load the generation of documentation structures.

Documentation / Generation

This menu item launches a documentation generation. You can also launch it from the Generation button at the bottom of the screen.

You can launch three types of generation one by one or simultaneously

  • The generation of the documentation structure from the dictionary (ADOCUMENT, ADOCBLB, and ADOCCLB tables)
  • The generation of the documentation from the previous tables
  • The generation of the field documentation

The range suggested by default takes into account the current record, but you can modify it at launch time.

Error messages

In addition to the generic error messages, the following messages can appear during the entry :

Activity code dependant on xxx

The activity code has been declared as dependent with respect to another activity code that is itself dependent.

Error in the evaluation of the formula

The formula entered does not respect the Adonix standards.

Tables used

SEEREFERTTO Refer to documentation Implementation