Skip to main content

Notifications

Microsoft Dynamics AX (Archived)

Vendor Portal List Page

Posted on by 525

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

  • Suggested answer
    Khurshid Wali Profile Picture
    Khurshid Wali 922 on at
    RE: Vendor Portal List Page

    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

    pastedimage1567402747943v1.png

  • KeithM Profile Picture
    KeithM 525 on at
    RE: Vendor Portal List Page

    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.

  • Suggested answer
    Khurshid Wali Profile Picture
    Khurshid Wali 922 on at
    RE: Vendor Portal List Page

    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

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans