Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

needs to put filter on Listpage form in AX 2012 r3

(0) ShareShare
ReportReport
Posted on by 4

Hi all,

I have duplicate the form "PurchTableListPage". and named it say "XYZListPage".

Now both listpage forms is connected to same interaction class - PurchTableListPageInteractionClass

@ I wants to set some filter based on "Purchase type" while opening the form "XYZListPage".. for example - suppose if purchase type is abc then it should show us only those purchase orders which has purchase type abc. And this fliter should work only for the form = XYZlistpage.

I beleive, form - DS- executeQuery - before super() is the best place to do.

Kindly let me know 

1. In PurchTableListPageInteractionClass , In which method i can do?

2. as both form the called the same interaction class, then how will put the condition?

3. kindly send me the script for filter

Please give me more shed on this.

thanks!

  • Verified answer
    ergun sahin Profile Picture
    8,816 Moderator on at
    RE: needs to put filter on Listpage form in AX 2012 r3

    Use initializeQuery method.

    You can check where from opened from with ;

    this.listPage().listPageArgs().menuItemName() ==  menuitemDisplayStr(XYZListPage) 

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,884 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,760 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Product updates

Dynamics 365 release plans