Default Fixed Values Reference Editor
The Default Fixed Values Reference Editor allows choosing one value out of a predefined set of available values. The editor extends the Default Reference Editor.
Editor Definition
| Name | Default Fixed Values Reference Editor |
| ID | com.hybris.cockpitng.editor.defaultfixedreferenceeditor, which extends com.hybris.cockpitng.editor.defaultreferenceeditor |
| Description | The editor does not use the search mechanism to obtain all potentially assignable values, but strictly relies on the provided list of values. If properly initialized, the editor allows choosing up to one value from the predefined list of values. |
| Type | java.lang.Object |
| Author | SAP |
| Inputs |
Details of input sockets:
|
| Outputs |
Details of output sockets:
|
Editor Preview
An example of the editor usage is visible in the Create New Audit Report Data wizard. You can choose between predefined list of values for configuration.
Settings
| Setting | Type | Description |
|---|---|---|
| dataModelProperty | java.lang.String | Editor parameter that is used to define widget model's property, at which the list (java.util.List instance) of available values is provided. If the parameter is not set, or the list is null or empty, an empty page of results is provided. The user cannot select a value for the editor. |
A sample configuration for a wizard with a context denoted by the ctx variable, is populated with the list under the allowedConfigCodes entry:
<wz:property qualifier="auditReportConfig" type="FixedValuesReference(java.lang.String)">
<wz:editor-parameter>
<wz:name>dataModelProperty</wz:name>
<wz:value>ctx.allowedConfigCodes</wz:value>
</wz:editor-parameter>
</wz:property>