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:
  • referenceEditorInput

    • Type: java.lang.Object

    • Description: Incoming data that is set as or added to the values of the editor, if valid.

Outputs
Details of output sockets:
  • referenceEditorOutput

    • Type: java.lang.Object

    • Description: Output that is usually connected to a wizard to create a new reference.

  • referenceSelected

    • Type: java.lang.Object

    • Description: When an item is selected from the list, the selected object is output to this socket.
  • referenceSearchCtx

    • Type: com.hybris.cockpitng.data.TypeAwareSelectionContex

    • Description: Context object with information necessary to perform search. It contains information such as typeCode, multiselect, or all editor parameters.

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>