Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV forum
Answered

SETFILTER on Page

Posted on by 226

6038.Screenshot_5F00_1.png

Hi,
As shown in figure the above code returns 4 in the message box that means it has 4 records but it shows only 1 record on the page. If i comment the code on onaftergetrecord then I get all records but my condition is IF True which will always be true.
So far what I have figured out that its pointing to only the first record from the setfilter.
Can anyone tell me the issue?

  • Ramiz Profile Picture
    Ramiz 226 on at
    RE: SETFILTER on Page

    Hi Teddy

    Yes you are right. That was the issue. need to mark all first and then markedonly.

    Thanks for the feedback

  • Verified answer
    TeddyH Profile Picture
    TeddyH 12,861 Moderator on at
    RE: SETFILTER on Page

    Can you elaborate what you are trying to do and why you are putting it on the OnAfterGetRecord ?

    My suggestion is to the do the looping, mark, and markedonly filter on the OnOpenPage.

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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,558 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,645 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans