Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

Loop thru Data

(0) ShareShare
ReportReport
Posted on by 3,027

Hi

  In a report user has entered Date from 01022018..050220018 . I have filtered records using setrange. Now i want to calculate data Date wise thru loop.

I want this thru C/al code only. 

First i want to do calculation of data as on 01022018 , then 02022017 & so on.

Thanks

*This post is locked for comments

  • Suggested answer
    RockwithNav Profile Picture
    RockwithNav 6,562 on at
    RE: Loop thru Data

    Change the Sorting in Dataitem so that record executes like this only. If you have taken any variable Record then do SETCURRENKEY based on date.

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Loop thru Data

    You can use grouping in RDLC by date... i think it easeir

  • ManishS Profile Picture
    ManishS 78 on at
    RE: Loop thru Data

    Group you data in a temporary table and then show on the report.

  • Suggested answer
    Suresh Kulla Profile Picture
    Suresh Kulla 43,749 on at
    RE: Loop thru Data

    As explained above create a temporary variable for your record type and do that logic mentioned, try to write something and share with us we will correct it.

  • jsshivalik Profile Picture
    jsshivalik 3,027 on at
    RE: Loop thru Data

    Hi

      Can u pls help me with some code

    Thanks

  • Suggested answer
    Suresh Kulla Profile Picture
    Suresh Kulla 43,749 on at
    RE: Loop thru Data

    First sort the data by the date and then use a temporary table to store the data by date wise.  If the same record in temp table exists for that date then update or else insert. this way at the end you will have the data summarized by the date.

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