Many strings used in the definition of configurable components
(such as label values, hrefs, and settings) can contain embedded macros and
select clauses. The ${} delimiters identify macro names. Macros are evaluated
at runtime. Macros for configurable components are available for directory
specification. Some existing macros are also
supported.
Some strings can also include select clauses which are evaluated
against the appropriate business object at run-time. The $<> delimiters
identify select clauses. Because the select clauses will generally use symbolic
names, the clauses will be pre-processed to perform any substitutions before
submitting for evaluation. The following example shows a macro being used in
the href definition and another macro being used in the Image setting, as well
as a select clause being used in the label definition of a tree menu
(associated with a LineItem object):
MQL<2>print menu type_LineItem;
menu type_LineItem
description
label '$<attribute[attribute_EnteredName].value>'
href '${SUITE_DIR}/emxQuoteLineItemDetailsFS.jsp'
setting Image value ${COMMON_DIR}/iconSmallRFQLineItem.gif
setting Registered Suite value SupplierCentralSourcing
children
command SCSAttachment
command SCSAttributeGroup
command SCSHistory
command SCSSupplierExclusion
command SCSUDA
nothidden
property original name value type_LineItem
property installed date value 02-28-2002
property installer value MatrixOneEngineering
property version value Verdi-0-0-0
property application value Sourcing
created Thu Feb 28, 2002 11:12:34 AM EST
modified Thu Feb 28, 2002 11:12:34 AM EST
The following example shows a typical business object macro being
used in the label definition of a tree menu (associated with a Company object):
MQL<3>print menu type_Company;
menu type_Company
description
label '${NAME}'
href '${SUITE_DIR}/emxTeamCompanyDetailsFS.jsp'
setting Image value ${COMMON_DIR}/iconSmallOrganization.gif
setting Registered Suite value TeamCentral
children
command TMCBusinessUnit
command TMCLocation
command TMCPeople
nothidden
property original name value type_Company
property installed date value 02-28-2002
property installer value MatrixOneEngineering
property version value Verdi-0-0-0
property application value TeamCentral
created Thu Feb 28, 2002 11:31:57 AM EST
modified Thu Feb 28, 2002 11:31:57 AM EST
When using a macro, surround it with quotes to ensure proper
substitution if a value contains spaces.