\page OdsRules
\section rules_com_highqsoft_moma_rules_ods_GetMaxChildInstanceId GetMaxChildInstanceId
\addindex GetMaxChildInstanceId
This rule is used to read the Id of the instances with the given name from
the input data set. The instances are searched as child of the parent element.
In the dataset is an attribute which match the name attribute of
the element. The result dataset will replace the values of the attribute which match
the Id attribute with the Id from the target. When the Id attribute is not available
in the dataset, the dataset will be extended with this attribute.
Type: SequencerRule
\par Properties
\li \b ElementName (required, no default, DT_STRING)
The name of the application Element.
\li \b OdsCacheRef (required, no default, DT_STRING)
The name of the ODSCache reference in the context.
\li \b CacheAttribute (required, no default, DT_STRING)
The name of the base attribute which will be used for the cache to find the attribute.
\li \b SortAttribute (required, no default, DT_STRING)
The name of the attribute (base or attribute) which will be used to sort the results
The first Id according the order is used.
\li \b SortDirectrion (required, default "descending", DT_STRING)
The sort direction of the sort attribute. Value can be "ascending" or "descending".
\par Example
The example below is called from the
sequence in a modelmapper control file.
\code
\endcode