web
You’re offline. This is a read only version of the page.
close
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 30

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!

I have the same question (0)
  • Verified answer
    ergun sahin Profile Picture
    8,826 Moderator on at

    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 584 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 499 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 254 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans