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

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Lotno not populating in the report.

(0) ShareShare
ReportReport
Posted on by

Hi NAV Peer friends,

I'm developing a Production order report , I need to display the lot no in the report . I have used  the Production Order and Production Order line as the parent dataitem. Now i want to display the lot no in the report . I have written the below coding

lotno-updation.PNG

. I get the lot no populated exactly in  the message box. But its not getting displayed in the report I mean layout . Please help . Please see the images below to get a clear view of my issue.

Thanks in advance.

*This post is locked for comments

I have the same question (0)
  • mmv Profile Picture
    11,471 on at
    RE: Lotno not populating in the report.

    I believe, the above code is written on the "Prod. Order Line" - OnAfterGetRecord trigger.

    Are you displaying the GLotnumber in the table control (on the report) or some text box?

    It's not on the Page Header, right?

  • Community Member Profile Picture
    on at
    RE: Lotno not populating in the report.

    Hi Mahesh ,

    Ya i have written the below code in Prodn order line dataitem. i need to display in the table in the layout  . and  its not the page header Mahesh.

  • Suggested answer
    Amol Salvi Profile Picture
    18,698 on at
    RE: Lotno not populating in the report.

    It is repeating till end for given item . check whether the last line of transactions contains lot No

  • Community Member Profile Picture
    on at
    RE: Lotno not populating in the report.

    Hi please reply ..

  • Community Member Profile Picture
    on at
    RE: Lotno not populating in the report.

    Hi Amol Bhai,

    Ya i has lot no .I checked in ltem ledger entry we have lot no there , and in message box i'm getting the correct lot no . Only in Layout im getting this issue.what to do in this case ?

  • Suggested answer
    Amol Salvi Profile Picture
    18,698 on at
    RE: Lotno not populating in the report.

    Check on Dataset also whether you are getting the value.

    Run the report and check in About the report.

  • mmv Profile Picture
    11,471 on at
    RE: Lotno not populating in the report.

    Do the below change:-

    IF recILE.FINDSET THEN REPEAT

    GLotnumber := recILE."Lot No.";

    UNTIL (recILE.NEXT = 0) OR (GLotnumber <> '');

    Could you also post the expression you have entered on the "Lot No." field on the Layout.

  • Tina Menezes Profile Picture
    2,582 on at
    RE: Lotno not populating in the report.

    Hi,

    Can you share an image of where of you have written this code i.e. under which trigger.?

  • Community Member Profile Picture
    on at
    RE: Lotno not populating in the report.

    Hi Amol Bhai,

    I tried as u said , in about the report i get only a single line. How its possible ?

  • Community Member Profile Picture
    on at
    RE: Lotno not populating in the report.

    Hi Tina.

    I have wriiten in Production order line - On after.

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…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

#1
Alexander Ermakov Profile Picture

Alexander Ermakov 2

#2
SC666 Profile Picture

SC666 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans