OroPlatform Forums

Covering OroPlatform topics, including community updates and company announcements.

Forums Forums OroPlatform OroPlatform – Programming Questions Custom action on Reports Datagrid

This topic contains 3 replies, has 2 voices, and was last updated by  Rodolfo 8 years, 2 months ago.

Starting from March 1, 2020 the forum has been switched to the read-only mode. Please head to StackOverflow for support.

  • Creator
    Topic
  • #34053

    Rodolfo
    Participant

    Hello Oro Community,

    I’ve been working to implement a custom action on Report’s Datagrid.

    Custom Action on OroCRM Datagrid

    As you can see on the image above, I managed to add the custom icon on other datagrids but it didn’t work when I try to add it to Report’s Datagrid since these reports are generated dynamically and we don’t have a datagrid.yml

    So, do you guys know something to help?
    Thank you

Viewing 3 replies - 1 through 3 (of 3 total)
  • Author
    Replies
  • #34054

    Rodolfo
    Participant

    I’m thinking to override this method and inject my custom action:

    https://github.com/orocrm/platform/blob/master/src/Oro/Bundle/ReportBundle/Controller/ReportController.php#L50

    What do you think?
    Thanks

    #34055

    Vova Soroka
    Participant

    Hi Rodolfo,

    You can use an event listener, something like this:

    #34056

    Rodolfo
    Participant

    Thank you @vova_soroka

    The suggested solution worked. I just changed to buildBefore and injected my custom action using:

Viewing 3 replies - 1 through 3 (of 3 total)

The forum ‘OroPlatform – Programming Questions’ is closed to new topics and replies.

Back to top