Good afternoon,
I recently added the Non conformances list page to the vendor portal. I then logged in using a vendor account to see if everything is working as intended. I noticed that it is still giving me all the Non conformances instead of vendor specific ones. I looked at the request for quotations list page and I don't see any ranges or query's that break it down to the specific vendor, but it does show vendor specific on the RFQs or Invoiced purchase orders. Any help would be appreciated.
*This post is locked for comments
It can't be magic.
Here is Listpage interaction class for purchtablelistpage.
Here AX filters based on Menuitem used means it is on EP or richclient
e.g
this.listPage().listPageArgs().menuItemName() == menuitemDisplayStr(PurchTableListPage)
or based on person assignment
e.g
this.getListPageType() == PurchTableListPage::AssignedToMe
So how does PurchTableListPage and PurchRFQVendReplyTableListPage work when they have no ranges, but you log into a vendor account on EP and they are filtered by just their RFQ's and purchase orders.
Hello KeithM,
what I got from your question is you want to filter list page based on the active user.
You can do it in two ways.
1. Add range to your AOT query (the one used in the List page) to get only the Vendor-specific List.
2. add range to above query using Listpage interaction Class
public void initializeQuery(Query _query)
{
super(_query);
switch (this.listPage().listPageArgs().menuItemName())
{
case menuitemDisplayStr(vendorspecificList):
this.applyvendorqury(_query);
break;
case menuitemDisplayStr(AllconformenceList):
this.applyallnoncoformanceList(_query);
break;
}
}
this code is based on MenuItem. You can use curuserid() method to get current user and check if it vendor or Admin and apply query accordingly.
Regards,
Khurshid Wali
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,253 Super User 2024 Season 2
Martin Dráb 230,188 Most Valuable Professional
nmaenpaa 101,156