Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Answered

Grid filtered? It doesn't show any results

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
    vanels 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
    nmaenpaa 101,156 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

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,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans