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 :
Finance | Project Operations, Human Resources, ...
Answered

How to set Two Filter controls

(0) ShareShare
ReportReport
Posted on by 456

Hi,

In my Form there is grid which has the columns as shown below. I have filter controls for From....ToDate. and Site and Warehouse.  My requirement is when i apply site and warehouse the grid should be filtered based on the site and warehouse. The From and To Date filter works fine.

FilterWarehouse.PNG

How to achieve this. 

Thanks & Regards,

Ram.

I have the same question (0)
  • Verified answer
    axk Profile Picture
    925 on at

    There are a lot of forms, which are working this way, so you can take a look at how it is done, for example, Forms\WMSTransportHandling and it's "OptionGroup". Basically, you should look at this group's control's "DataMethods" and WMSTransport_ds.executeQuery().

  • Verified answer
    Peter John Profile Picture
    288 on at

    Field modified()

    {

    this.executequery();

    }

    executequery()

    {

    this.query().dataSourceTable(tableNum(%TableName%)).addRange(fieldNum(%TableName%, %FieldName%)).value(queryValue(%FieldValue%));  --> site value

    this.query().dataSourceTable(tableNum(%TableName%)).addRange(fieldNum(%TableName%, %FieldName%)).value(queryValue(%FieldValue%));  --> warehouse value
     
        super();

    }

    Before the call to super(), add the filter (range) you need to the query.

    Try this and let me know

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 > Finance | Project Operations, Human Resources, AX, GP, SL

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans