Check below the assemblers used for Aggregates or directly access the content you have doubts:
- %IDmódulo.IDAgregado.InformaçãoDesejada% assembler
- %CHECKED(IDmódulo. IDAgregado)% assembler
- $HASCHILDREN(ID_DA_ENTIDADE)$ assembler
!Find Assembler
The !Find assembler is used to search for information about a specific group or entity. It is generally used in the reference assembly of Format Templates, but it can be used in several other functions in the customization of Promob.
Find can only be used to search for references when this search refers to one of the item's aggregates.
To search for information for a particular reference in a module aggregate:
!find(entityid,id_entity).$REFERENCE(information)$!
To search for information for a particular reference in a group aggregate:
!find(groupid,id_group).$REFERENCE(information)$!
EXAMPLE 1:
!find(groupid,POR_MOD_INF*).$REFERENCE(FORMAT)$!
In this example, the search will be for the FORMAT reference within any item (*) of the group (groupid) POR_MOD_FOR *.
IMPORTANT: The * used at the end of the ID is for the reference to search in all groups that have the ID POR_MOD_FOR even if it contains some information after the FOR such as the ID POR_MOD_FOR_INF, this makes it easier when looking for the IDs in the format templates door.
EXAMPLE 2:
!find(entityid,POR_COZ_INF).$D$!
In this example, the search will be done by the depth ($ D $) of the entity (entityid) POR_COZ_INF.
IMPORTANT: For the result to return, the aggregate in question must be active.
%IDmodule.IDAggregate.InformationDesired% Assembler
In addition to Find, it is possible to use the assembler below to search for aggregate information. This assembler should only be used on the item that has the item mentioned in the aggregate formula.
%IDmodule.IDAggregate.InformationDesired%
Example:
%POR_MOD_FOR_INF.Model.$REFERENCE(FORMAT)%
In the example, the information sought will be the FORMAT reference in the item or group POR_MOD_FOR_INF.
The desired information may be an assembler (not related to the environment) mentioned in the table above.
EXAMPLE:
%IDmodule.IDAggregate.$EntityID$% assembler
Returns the name (abbreviation) of the aggregate.
%IDmodule.IDAggregate.$Width$% assembler
Returns the width of the aggregate.
%IDmodule.IDAggregate.$Reference(COMPLETE)$% assembler
Returns the COMPLETE reference of the aggregate.
IMPORTANT: For the result to return, the aggregate in question must be active.
%CHECKED(IDmodule. IDAggregate)% Assembler
The CHECKED assembler checks whether the aggregate is checked. This function is useful when the reference is different depending on the aggregate that is active or in visibility conditions, where a specific aggregate will only be visible if aggregate X is active.
%CHECKED(IDmodule. IDAggregate)% == ‘TRUE’
$HASCHILDREN(ID_DA_ENTIDADE)$ assembler
Returns true / false, if it contains the child entity;