Component Tag (C)
The component tag is inserted in the form: [C= "Link"/] or [C="Link"]text[/C].
"Link" represents the link browsed (for example, "Component") to reach the components, that is the objects connected to the main object. It is also possible to use these tags for queries.
With [C="Link"]text[/C], the text is inserted for each object reached by the link. This enables, for example, the insertion of a specific image before each entry in a list (example [C="Component"]<IMG SRC="CMP.JPG">[/C]). On the other hand, it is recommended that either “Before” or conditioned texts (see later) be used to define a title preceding a list of objects.
This tag is most often inserted with the component properties tag [CP], which enables editing of component properties and in particular of its name.
 
Syntax used:
[C=link" or "query"][CP=Name Link=Out/][/C]
*Use of the LINK attribute is optional if sensitive objects are not required.
Enter the query in the tag
It is possible to enter the query code directly in the tag [C] in place of the query name. This can be practical if the query is used only in this location.
Example
[C="SELECT Operation WHERE [Type Operation] = 'Check' and Org-Unit=&name"][CP=Name/]<br>[/C]
This returns a list of operations of "Check" type carried out by the org-unit on which you are positioned.
*In this case, the name of the variable used must of necessity be "name".
*When your query includes double quotation marks, these should be replaced by single quotation marks within a tag ('Check' and not "Check").
A query is saved via its absolute identifier. In event of modification of the query name, descriptors do not need to be modified.
Sorting a list by attribute
The [Component] tag enables to display an object list:
• Presented in Alphabetical Order
• In the link sort if using a MetaAssociationEnd.
We may need to classify objects as a function of an attribute. To do this, the "Sort" attribute is used, specifying if sort order should be:
• ascending ("A")
• descending ("D").
[C="MetaAssociationEnd" Sorter="Attribute:A"]
Example: sorting project organizational processes by code
[C="Organizational process" Sorter="Organizational Process Code:A"] [CP=name link=out/]<br>[/C]
 
("A") used alone sorts by internal value by default.
*The internal value is unchanging, while the external value is the value displayed translated in the different languages.
To sort by external value, you must add "E".
Example: sorting diagrams depending on their external type
[Component= "Select Diagram" Sorter="type :A :E"]
[/Component]
Displaying objects that produce pages
When browsing a list of objects associated with the current object, the "WithPages" attribute enables return of only those objects that produce a page.
 
Using an abstract link
To use an abstract link towards a given physical metaclass
*Use the following syntax:
[C="<MetaAssociationEnd>" Metaclass="<Metaclass HexaIdAbs>"]