OrderHasLastMarkerWithKey
determines whether the last marker added to the order with a particular key matches the values you specify. These additional parameters can be specific values for the value
, data
, or other marker properties you specify. If the last marker with a particular key
matches the other parameters you specify, the true
open parameter is rendered and the marker is made available to the page through the marker
output parameter.
Class Name |
|
---|---|
Component |
|
Input Parameters
key (required)
The value in the marker’s key
property. Set this parameter to ANY_VALUE to indicate that the marker’s key
value is irrelevant for your purposes. For example:
<dsp:param name="key"
bean="OrderHasLastMarkerWithKeyDroplet.ANY_VALUE"/>
order
The order that has a marker you want to access. If omitted, the active order is used.
value
The value in the marker’s value
property. You can set this parameter to NULL
or omit it in order to return the marker only if its value
property is null.
Set this parameter to ANY_VALUE to indicate that the marker’s value
is irrelevant for your purposes. For example:
<dsp:param name="value"
bean="OrderHasLastMarkerWithKeyDroplet.ANY_VALUE"/>
data
The value in the marker’s data
property. You can set this parameter to NULL
or omit it in order to return marker only if its data
property is null.
Set this parameter to ANY_VALUE, to indicate that the marker’s data
value is irrelevant for your purposes. For example:
<dsp:param name="data"
bean="OrderHasLastMarkerWithKeyDroplet.ANY_VALUE"/>
extendedProperties
A map that specifies any additional marker properties (set to the map’s key
) and property values (set to the map’s value
) that must exist on the marker that is retrieved.
markerPropertyName
The property on the order to check for markers. If omitted, the servlet bean uses the default value specified in its defaultMarkerPropertyName
property.
markedItemType
The type of RepositoryItem
that has markers you want to work with. If omitted, the servlet bean uses the default value specified in its defaultMarkedItemType
property.
Output Parameters
marker
Contains the marker located by the servlet bean.
errorMsg
Contains any error messages generated during the servlet bean’s execution.
Open Parameters
error
Rendered when an error occurs during servlet bean execution.
true
Rendered when the last marker added with a certain key
matches the specified criteria.
false
Rendered when the last marker added with a certain key
does not match the specified criteria.