OroPlatform Forums

Covering OroPlatform topics, including community updates and company announcements.

Forums Forums OroPlatform OroPlatform – Programming Questions Datagrid – Show entity calculated fields

This topic contains 2 replies, has 2 voices, and was last updated by  fdellutri 5 years, 3 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
  • #33625

    fdellutri
    Participant

    Dear all,
    I’m wondering if there is a way to show an entity calculated field (i.e. a field that is not mapped in doctrine) in a datagrid.

    No filtering/sorting is required.

    Bests

Viewing 2 replies - 1 through 2 (of 2 total)
  • Author
    Replies
  • #33626

    Alexandr Smaga
    Participant

    Hello @fdellutri !

    Of course it’s possible, also sorting and filtering will work as well.
    See some examples here and here

    #33627

    fdellutri
    Participant

    Hi @Alexandr,
    Thank you for the response, but what I meant as “calculated” field was an entity’s getter that calculates and returns a value that is not persisted in doctrine.

    In short I have a class like this:

    And I want to show, along other values, the “getTotal” value in a datagrid.
    Can I do that?

    Thankyou.

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

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

You will be redirected to [title]. Would you like to continue?

Yes No