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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

Report Extension: addafter() doesn't show the field, addbefore() makes other fields disappear in Report

(0) ShareShare
ReportReport
Posted on by 485

My code for addbefore() and the preview of report:
Screen-Shot-2022_2D00_06_2D00_02-at-12.45.40-PM.pngScreen-Shot-2022_2D00_06_2D00_02-at-12.56.08-PM.png

My code for addafter() and the preview of report:
Screen-Shot-2022_2D00_06_2D00_02-at-12.45.53-PM.pngScreen-Shot-2022_2D00_06_2D00_02-at-12.43.15-PM.png

I want everything to show, including the new columns in the added dataitem. Why is it acting this way? (I really just changed addbefore -> adddafter)

I have the same question (0)
  • Suggested answer
    Nitin Verma Profile Picture
    21,812 Moderator on at

    Hi,

    Can you please confirm if below filter is working with Customer."No."?

    pastedimage1654218915531v1.png

  • Suggested answer
    YUN ZHU Profile Picture
    102,590 Super User 2026 Season 1 on at

    Hi, Although I don't know which standard report you extended. It seems that the Integer's DataItem is not correctly obtained.

    Maybe when you add filtering (DataItemTableView & DataItemLink) before Integer, the content in Integer may not run, so the value of Header is not obtained. Report is empty.

    In additional, if this is a sales invoice, only the column needs to be added, no DateItem needs to be added.

    For example,

    pastedimage1654219188812v1.png

    More about report extension: https://yzhums.com/10723/

    Hope this helps.

    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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 580 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 462 Super User 2026 Season 1

#3
Grigorios Mavrogeorgis Profile Picture

Grigorios Mavrogeorgis 272 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans