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

Grid filtered? It doesn't show any results

(0) ShareShare
ReportReport
Posted on by 447

Hello,


I am working with PdsApprovedVendorList form, where I see vendor approved items.

The grid is filtered by article, through args.

Well, I'm trying to add another grid to the side, where I want it to show me providers filtered by a field created in the VendTable table, that is, a query independent of the form and args.

If I execute the form from the AOT (it doesn't have an ítem filter) then I see results in my new grid, but if I execute it normally on an item, I never see anything (and the search criteria is correct).

I have done it in the following way:

- I add a new DataSource called VendTable2
- I add the grid with the DataSource property= VendTable2

- DataSource VendTable2 init method

public void init()

{

super();

this.queryBuildDataSource().addRange(fieldNum(VendTable, VendGroup)).value('INT'));

}

If I get query text just after the super in executeQuery(), I see this:

SELECT FIRSTFAST * FROM VendTable(VendTable2) USING INDEX AccountIdx WHERE ((VendGroup='INT'))

but the VendTable2.RecId = 0

Any ideas?

Thanks in advance.

 

  • vanels Profile Picture
    447 on at
    RE: Grid filtered? It doesn't show any results

    Yeah !!!

    I thought that if it did not indicate relation in the datasource this was independent but I see that it does not …

    Many thanks Nikolaos

  • Verified answer
    nmaenpaa Profile Picture
    101,158 Moderator on at
    RE: Grid filtered? It doesn't show any results

    Try to clear dynalinks, otherwise it might filter by the selected vendor from the previous screen.

    community.dynamics.com/.../ax-2012-add-remove-dynalink-through-x

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March 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... 294,261 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 233,013 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Product updates

Dynamics 365 release plans