A function to get a lookup value when more than 4 parameters are needed. For up to 4 parameters the LookupValue function is used.
NAMESPACE
xmlns:AS="http://schema.advantages.cz/AsapFunctions"
SYNTAX
string LookupValueEx(string lookupId, XPathNavigator parameters)
PARAMETERS
Parameters for the lookup are defined separately in a variable.
Name | Description |
---|---|
lookupId | Unique identifier (Guid) of lookup model element |
parameters | Nodeset consisting of parameter nodes representing individual parameters. See the structure below: |
<parameter key="key" value="value"/>
EXAMPLE
<xsl:variable name="parameters">
<parameter key="AllDataTypes_parDate1From" value="{AS:AddMonths(AS:FirstDayNextMonthDate($dateFrom),-1)}"/>
<parameter key="AllDataTypes_parDate1To" value="{AS:AddSeconds(AS:FirstDayNextMonthDate($dateTo), -1)}"/>
<parameter key="AllDataTypes_parWidgetPlainTextTestId" value="{@refWidgetPlainTextTestId}"/>
<parameter key="AllDataTypes_parTagInputSourceId" value="{@refTagInputSourceId}"/>
<parameter key="AllDataTypes_parDate1Interval" value="{$date1Interval}"/></xsl:variable>
</xsl:variable>
<xsl:variable name="count">
<xsl:value-of select="AS:LookupValueEx('5a9dcccc-4d9e-4801-b744-52677e129f93', $parameters)"/>
</xsl:variable>