You are browsing the documentation for version 4.2 of OroCommerce, OroCRM and OroPlatform, which is no longer maintained. Security Support ends in January 2024. Read version 5.0 (the latest LTS version) of the Oro documentation to get the updated information.
See our Release Process documentation for more information on the currently supported and upcoming releases.
This extension is responsible for configuring actions for the datagrid. Developers can easilt add action types. The configuration for actions should be placed under the
type is a required option for the action configuration.
Action access can be controlled by adding the
acl_resource node to each action (this parameter is optional).
Performs ajax call by the given URL.
action_name: type: ajax link: PROPERTY_WITH_URL # required
Performs DELETE ajax request by the given URL.
action_name: type: delete link: PROPERTY_WITH_URL # required confirmation: true|false # should confirmation window be shown
Performs import of an entity.
action_name: type: import entity_class: 'Acme\Bundle\DemoBundle\Entity\TestEntity' importProcessor: 'acme_import_processor' # required importJob: 'acme_import_from_csv' options: refreshPageOnSuccess: false # refresh page after success importTitle: Custom Import Title datagridName: 'acme-entity-grid' # refresh datagrid after success routeOptions: param1: value1
Performs export of an entity.
action_name: type: import entity_class: 'Acme\Bundle\DemoBundle\Entity\TestEntity' exportProcessor: 'acme_export_processor' # required exportJob: 'acme_export_to_csv' filePrefix: 'test-entity-prefix' options: routeOptions: param1: value1
To configure an action that executes on row click, set the
rowAction param to true.
Control Actions on Record Level and Custom Configuration
# dynamic configuration action_configuration: ['@acme.datagrid.action_configuration_provider', 'getActionConfiguration']