OroCRM Forums

Covering OroCRM topics, including community updates and company announcements.

Forums Forums OroCRM OroCRM – Programming Questions How to Translate Column Headers & Customize Columns(hide) for Datagrid Export

This topic contains 4 replies, has 2 voices, and was last updated by  shreyas 4 years, 10 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
  • #38725

    shreyas
    Participant

    Hi Team,

    we are trying to export a Datagrid for users module which is bit customized where in when we try to export we get all column headers in untranslated format. How can we get Headers translated for Datagrid Export?

    Also for some columns which are to be ignored while exported specific to a grid (Grid A) can we try hiding without modifying Entity file configuration (i.e exclude property of importexport annotation) since modifying the Entity will make Export logic impacted everywhere if Entity is used as multiple Custom Grids & also its a Vendor side Entity.

    As we will be using same Entity (like – Users) as multiple grids (like – Grid A, Grid B focusing on a single ENTITY) with different query logic & columns display.So based on the Datagrid rendered is there any way wherein columns mentioned under columns section for that specific grid are in sync with exported columns?

    For these above mentioned issues is there any Event Listener / hooks which we can trigger whenever these Export job is initiated .I tried at documentations & links given below but could not get much about the process like strategy & processers being followed.

    Import Export Documentation
    Import Export Events
    Import Export configuration Steps

    Please need help if any guidance or resources / sample examples that can be shared regarding this issue.

    Thanks & Regards,
    Shreyas S

Viewing 4 replies - 1 through 4 (of 4 total)
  • Author
    Replies
  • #38745

    Andrey Yatsenko
    Moderator

    Hi Shreyas,

    There are two types of export. Regular data export and datagrid export. As I understand you need the second one.

    here is the developer documentation: https://github.com/oroinc/platform/blob/master/src/Oro/Bundle/DataGridBundle/Resources/doc/backend/extensions/export.md

    This extension provides a functionality to export grid rows. This allows you to export rows from all pages. The exported data will be the same as on a grid, including filters and sorting.

    After enabling the feature with the YAML configuration you will see the button “Export Grid” in the left corner below the grid title.

    #38757

    shreyas
    Participant

    Hi Andrey,

    Thanks a lot for such a quick response.
    I checked at the link you shared it is working as expected.Is there any way where in the column headers will get translated based on how datagrid columns displayed in UI because as observed translation of headers is missing in export file.

    Thanks & Regards,
    Shreyas S

    #38778

    Andrey Yatsenko
    Moderator

    Headers are not translated intentionally to make the exported file more universal.
    For example with untranslated headers it possible to use the exported file that was updated for the later import.

    #38796

    shreyas
    Participant

    Hi Andrey,

    Thanks a lot for sharing this information.

    Thanks & Regards,
    Shreyas S

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

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

Back to top