Edit Action
The Edit Action is a general-purpose action that implements edit operation by sending the selected items to another widget's socket.
Action Definition
|
Name |
Edit Action |
|
ID |
com.hybris.cockpitng.action.edit |
|
Description |
Action providing default implementation of edit operation |
|
Author |
SAP |
|
Action Class Name |
com.hybris.cockpitng.actions.edit.EditAction |
|
Custom Rendered Class Name |
com.hybris.cockpitng.actions.navigation.NavigationActionRenderer NavigationActionRenderer is an extension of DefaultActionRenderer. For more information, see Action Parameters. |
|
Inputs |
Not applicable |
|
Outputs |
Not applicable |
Action Preview
Configuration
You can configure this action with the following attributes:
|
Name |
Type |
Description |
|---|---|---|
|
forwardSelectionToSocket |
java.lang.String |
Specifies the underlying widget's socket name through which the action is to send the selection (edited elements). |
|
forwardSelectionAs |
java.lang.String |
Allows to specify what type of collection to be used to forward the selection. Default value: Collection. If a specific type of collection (List or Set) is needed, you must express it explicitly. Possible values: Collection, List, Set. |
Example configuration in the cockpit-config.xml file could be defined as follows:
<context type="SomeType" component="sampleComponentWithActions">
<y:actions xmlns:y="http://www.hybris.com/cockpit/config/hybris">
<y:group qualifier="common">
<y:label>actiongroup.common</y:label>
<!-- More actions -->
<y:action action-id="com.hybris.cockpitng.action.edit" property="selectedObjects">
<y:parameter>
<y:name>forwardSelectionToSocket</y:name>
<y:value>selectedItems</y:value>
</y:parameter>
</y:action>
</y:group>
</y:actions>
</context>
Dependency
Not applicable.