Skip to main content

Notifications

Microsoft Dynamics AX (Archived)

Filter grid by display method value in AX7

Posted on by 403

Hi All,

I want to filter the grid based on Qty Remaining. Qty Remaining is an Int control from a form not a field. Value is obtained from the display method. How can I filter the grid, if the obtained Qty Remaining is '0' then the record will not appear?

r.png

And This is my display method

    display int displayQtyRemaining()
    {
        ZSDAMark    _zsdaMark;
        SalesLine   _salesline;
        int64       _recid;

        select count(RecId) from _zsdaMark where _zsdaMark.ZSDAId == this.SDAID;
        select _salesline where _salesline.RecId == _zsdaMark.SalesLineRecId;

        _recid = _zsdaMark.RecId;

        

        return this.QtySDA - _recid;
    }


Thanks

*This post is locked for comments

  • Suggested answer
    udaY-ch Profile Picture
    udaY-ch 4,624 on at
    RE: Filter grid by display method value in AX7

    Hi,

    Hope this helps you out

    stackoverflow.com/.../how-to-hide-record-in-form-grid-based-on-display-method-value

    Best,

    Uday.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans