ssossossosso

Forums

Covering OroCRM topics, including community updates and company announcements.  Subscribe

This topic contains 3 replies, has 2 voices, and was last updated by  Rodolfo 1 year, 9 months ago.

  • Creator
    Topic
  • #16218

    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
  • #16220

    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

    #16237

    Vova Soroka
    Oro Core

    Hi Rodolfo,

    You can use an event listener, something like this:

    #16243

    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)

You must be logged in to reply to this topic.