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)

Integer DataItem

(0) ShareShare
ReportReport
Posted on by 3,099

Hi

  I have below DataItem.

  Item

      Item Ledger Entry.

In

In a report i am display Item Code, OpeningQty , ReceiptQty , IssueQty, ClosingQty.


In Item Ledger Entry - OnAfterGetRecord() i want if ReceiptQty-IssueQty = 0 then that record should be added to Integer DataItem and those records i want to display in another Tablix.

AT which position i should define Interger DataItem and Secondly when to add records .

Thanks

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Saurav.Dhyani Profile Picture
    14,358 Super User 2025 Season 2 on at
    RE: Integer DataItem

    Some Ideas -

    1. Create a variable like TempItemLedgEntry (Temporary = TRUE). 

    2. In OnaftergetRecords of Item Ledger Entry check like -  

    IF (ReceiptQty-IssueQty) = 0 THEN BEGIN

      TempItemLedgEntry.INIT;

      TempItemLedgEntry.TRANSFERFIELDS("Item Ledger Entry");

      TempItemLedgEntry.INSERT;

      CurrReport.SKIP;

    END;

    Add a Data Item Integer at Indentation Zero "Last Data item".

    In onPreSection check like -

    IF TempItemLedgEntry.Count =0  Then 

      SETRANGE(Number,1,1);

    ELSE

      SETRANGE(Number,1,TempItemLedgEntry.Count);

    In OnAfterGetRecord of Integer do whatever you want to do based on values in TempItemLedgEntry.

  • jsshivalik Profile Picture
    3,099 on at
    RE: Integer DataItem

    Hi

       What should be DataType of TempItemLedgEntry variable.

    Thanks

  • Suggested answer
    Binesh Profile Picture
    7,885 on at
    RE: Integer DataItem

    Hello,

             1. Create a variable like TempItemLedgEntry (Temporary = TRUE).

            To achieve this follow the below steps:

    Step 1: Ope the C/AL Globals and declare variables like:

    Name                                DataType      Subtype                     Length

    TempItemLedgerEntry      Record           Item Ledger Entry

    ----------

    Step 2: Goto property and Make, Temporary = Yes

  • Suggested answer
    Amol Salvi Profile Picture
    18,698 on at
    RE: Integer DataItem

    You need to store data in Temporary table and use that temporary table to display the value using Integer as data item.

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

#1
Saurav.Dhyani Profile Picture

Saurav.Dhyani 2 Super User 2025 Season 2

#2
RK-25090803-0 Profile Picture

RK-25090803-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans