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)
Answered

Filter data with combobox

(0) ShareShare
ReportReport
Posted on by

I have to add combobox on the form with values Current active, not active and all. This combobox should filter the data from the grid according to the FromDate and ToDate fields. Any help?

Thank you in advance.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Mahmoud Hakim Profile Picture
    17,887 on at

    you can check payment journal for show box as open , posted,all

    you can use the same logic

  • Verified answer
    Chaitanya Golla Profile Picture
    17,225 on at

    Hi,

    In the modified method of the combox box, get the value through this.valueStr() and apply daterange using the datasource of table and make to executeQuery method.

    public boolean modified()
    {
        QueryBuildDataSource qbds;
        QueryBuildRange qbr1, qbr2;
        
        boolean ret;
    
        ret = super();
    
        if (ret)
        {
            this.valueStr();
            qbds = LedgerJournalTable_ds.queryBuildDataSource();
            qbr1 = SysQuery::findorCreateRange(qbds, fieldnum(Table, ActiveStatus));
            qbr1.value(queryValue(this.selection()));
    
            qbr2 = SysQuery::findorCreateRange(qbds, fieldnum(Table, TrackingDate));
            qbr.value(queryRange(FromDate, ToDate));
    
            Table_ds.executeQuery();
        }
    
        return ret;
    }

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 April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
CP04-islander Profile Picture

CP04-islander 34

#1
CP04-islander Profile Picture

CP04-islander 34

#3
Jagadabi Profile Picture

Jagadabi 6

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans