Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

Do not retrieve the records for that particular field

(0) ShareShare
ReportReport
Posted on by 4,818

Hi experts, based on the sales invoice header, I have created a report. I have created a variable boolean A, all the records are retrieved based on the checkbox.

In the OnAfterGetCurrRecord event, I wrote:

If A then

If ("Bill-to County" ='NY') or ("Bill-to County" ='IL') then

Currreport.SKIP ;

When I ran the report, I could still see those records with NY.

Please advise! Thank you!

 

*This post is locked for comments

  • Suggested answer
    Suresh Kulla Profile Picture
    Suresh Kulla 43,749 on at
    RE: Do not retrieve the records for that particular field

    Send the screenshot of the report dataitems and your code.  Have you stepped through the code using the debugger ?

  • Suggested answer
    Binesh Profile Picture
    Binesh 7,885 on at
    RE: Do not retrieve the records for that particular field

    Hello,

    Can you check below points:

    1. A is your Global variable if not then make it.
    2. In Which scenario A is validated.
    3. If your Report has more DataItem loop then also try with CurrReport.BREAK;
    4. check Standard Report Sales Quotes 10074 for reference.

    Still if you getting then send us more snap or objects so we can look into that.

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,458 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans