oroinc / platform

Main OroPlatform package with core functionality.
Other
627 stars 351 forks source link

How to access filter values in callback function in datagrid #970

Closed farzamsabeti closed 4 years ago

farzamsabeti commented 4 years ago

Hello oro team,

Is there a way to access filter values in callback function in datagrid?

I checked callable: "@oro_email.helper.datagrid.emails->getReadedRowClosure" and callable: ["@oro_workflow.helper.translation", "findTranslation"] but, I couldn't find a way to access the filter values.

Thanks in advance, Farzam

anyt commented 4 years ago

Hi Farzam, I suggest creating an event listener to one of the datagrid events.

farzamsabeti commented 4 years ago

Hi,

I used session in onBuildBefore event to pass filter's data to my callback function. It works fine now.

Thank you so much.