Excel Export Action

The Excel Export action is used to trigger the opening of the Excel Export wizard.

Action Definition

Name Excel Export Action
ID com.hybris.backoffice.widgets.actions.excel.export
Description The action opens the Export Excel wizard. The wizard is triggered with all selected items, or with items that the current search returns in the collection browser. The type of the selected items is determined by the closest super type they share. The permissions are checked basing on this calculated type, and the itemsToExport are passed as a collection of the mentioned types.
Author SAP
Action Class Name com.hybris.backoffice.widgets.actions.excel.export.ExcelExportAction
Custom Renderer Class Name

DefaultActionRenderer

For more information, see Action Parameters.

Inputs Not applicable
Outputs Details of output sockets:
  • itemsToExport
    • Type: Pageable
    • Multiplicity: Single
    • Description: Whenever the action is performed, it sends pageable that contains items to be exported.

Action Preview

An icon defined for Excel Export:

By default, you can choose the action from the dropdown list:

Configuration

You can change the default behavior for the Excel Export action using the following parameters:

Name

Type

Description

selectedObjects java.lang.String Specifies model property name where selected items can be found. Default value: selectedObjects.
confirmation.threshold java.lang.Integer

Specifies the maximum value of the selected items, at which a warning popup is displayed. The popup informs about exceeding the set value of items. Default value: 500.

pageable java.lang.String Specifies model property name where pageable can be found. Default value: pageable.

You can also determine a maximum number of rows to export. You can set it using the backoffice.excel.export.max.rows property. The default value is 2000: backoffice.excel.export.max.rows=2000.

The action applies only to the Collection Browser widget, an example of configuration is:

<context type="Product" component="listviewactions">
    <y:actions xmlns:y="http://www.hybris.com/cockpit/config/hybris" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
        <y:group qualifier="common">
            <y:action action-id="com.hybris.backoffice.widgets.actions.excel.export">
              <y:parameter>
                    <y:name>selectedObjects</y:name>
                    <y:value>selectedItems</y:value>
              </y:parameter>
			<y:parameter>
				<y:name>confirmation.threshold</y:name>
				<y:value>450</y:value>
			</y:parameter>
              <y:parameter>
                    <y:name>pageable</y:name>
                    <y:value>searchPageable</y:value>
              </y:parameter>
          </y:action>
      </y:group>
    </y:actions>
</context>

Dependency

Not applicable.