web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Get grid filtered value

(0) ShareShare
ReportReport
Posted on by 1,093

Hi Experts,

I have some 15 columns in the form grid among that i wanted to get the user filter data for 1 columns (I can get active data of grid using execute query method of data Source), Ex:- 

823681.Capture.PNG

In the above screen if user filtered transaction code as 'APP'. I wanted to get value 'APP' based on that i need to calculation for amount. If user filtered any other column amount should be remain same. Can anyone help me on this ?

Regards

Guru

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Rustem Galiamov Profile Picture
    8,072 on at

    Hi guruprasanna!

    This is how to get filter values:

    Query       query = InventTable_ds.queryRun().query();
    QueryFilter queryFilter;
    int         i;
    
    for (i = 1; i <= query.queryFilterCount(); i++)
    {
        queryFilter = query.queryFilter(i);
        info(strFmt("%1: %2", queryFilter.field(), queryFilter.value()));
    }
  • Suggested answer
    Mea_ Profile Picture
    60,286 on at

    Hi Guruprasanna M,

    It's a very strange requirement and I would recommend you to rethink it, however, if you want to get your value you can use next code:

    QueryBuildDataSource qbds = myTable_ds.queryRun().query().dataSourceTable(tableNum(MyTable));
    QueryBuildRange qbr = qbds.findRange(fieldNum(MyTable, MyField));
    if (qbr)
    {
        info(qbr .value());
    }
    
  • Guruprasanna Profile Picture
    1,093 on at

    Thank you Rustem Galiamov and

    ievgen Miroshnikov for help !

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
CP04-islander Profile Picture

CP04-islander 16

#2
GiacomoRovai Profile Picture

GiacomoRovai 4

#3
Douglas Noel Profile Picture

Douglas Noel 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans