web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Forms

(0) ShareShare
ReportReport
Posted on by 3,099

Hi

  I have main form Location & sub Form . Both Forms are linked on Location Code. In Sub Form i want to display Day Wise Sales Amount Data 

from Sales Line table.

01/04/2018     200000

02/04/2018     400000 & so on

Thanks

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Amol Salvi Profile Picture
    18,698 on at

    Provide more details..

  • jsshivalik Profile Picture
    3,099 on at

    Hi

        In Sales Lines table there may be lot of entries of same date. Like

    01/04/2018     Doc1       20000.00

    01/04/2018     Doc2       35000.00

    02/04/2018     Doc3       25000.00

    05/04/2018     Doc4       40000.00

    05/04/2018     Doc5       50000.00

    But in SubForm i want data should displayed like this.

    01/04/2018     55000.00

    02/04/2018     25000.00

    05/04/2018     90000.00

    Thanks

  • Suggested answer
    Suresh Kulla Profile Picture
    50,243 Super User 2025 Season 2 on at

    what is your source for the subform , is it sales line table ?

  • jsshivalik Profile Picture
    3,099 on at

    Hi

      I am trying like this but not working . It is giving error

    DLine already exists
    Identification fields and values:
    Location = 'LDH',Date='01/01/17'

    TEntry has key Location,Date . In Sum Amount Index field it is written Amount . In DLine table i want display Date Wise Amount Sum of Location.


    TEntry.RESET;
    TEntry.SETCURRENTKEY("Location",Date);
    TEntry.SETFILTER("Location","No.");
    TEntry.SETRANGE(TEntry.Date,StartDate,EndDate);

    IF TEntry.FINDFIRST THEN BEGIN
    REPEAT

    DLine.INIT;
    DLine."Location" := "No.";
    DLine."Date" := TEntry.Date;
    DLine."Amount" := TEntry."Amount";
    DLine.Status := 0;
    DLine.INSERT;
    UNTIL TEntry.NEXT=0;
    END;

    Thanks

  • Suggested answer
    Suresh Kulla Profile Picture
    50,243 Super User 2025 Season 2 on at

    Where are you writing this code and what is the purpose of it ?

  • jsshivalik Profile Picture
    3,099 on at

    Hi

      Code is written on Push Trigger of Button .

    Thanks

  • Suggested answer
    Suresh Kulla Profile Picture
    50,243 Super User 2025 Season 2 on at

    can you send us the screenshot, is it a document form if so where are you planning to populate the values ? What is your actual requirement

  • jsshivalik Profile Picture
    3,099 on at

    Hi

       Main Form is Location . In Sub Form i want t display Data.

    Thanks

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans