Skip to main content

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
Answered

SETFILTER on Page

Posted on by 344

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 344 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,868 Super User 2024 Season 1 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

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,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans