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 :
Small and medium business | Business Central, N...
Answered

Can you reference a field from a page extension to fill it in a report extension?

(0) ShareShare
ReportReport
Posted on by 30

Hello everyone.
I hope you can help me, what I want to do is grab a field from a page extension and put it in a report but when passing it it appears that they do not exist in that context

 I don't know if it can be done, thanks.

Captura-de-pantalla-2022_2D00_07_2D00_18-160034.pngCaptura-de-pantalla-2022_2D00_07_2D00_18-155540.png

I have the same question (0)
  • Suggested answer
    YUN ZHU Profile Picture
    95,638 Super User 2025 Season 2 on at

    Hi, I did the same test as you and it didn't seem to be a problem.

    pastedimage1658190051422v1.png

    pastedimage1658190068440v2.png

    Source code:

    tableextension 50100 MyExtension extends Vendor
    {
        fields
        {
            field(50000; "Comprador Zitro"; Boolean)
            {
                DataClassification = CustomerContent;
            }
        }
    }
    
    reportextension 50100 MyExtension2 extends "Purchase Document - Test"
    {
        dataset
        {
            addlast(PageCounter)
            {
                dataitem(Vendor1; Vendor)
                {
                    column(Comprador_Zitro; "Comprador Zitro")
                    { }
                }
            }
        }
    }

    Hope this helps.

    Thanks.

    ZHU

  • Josue Morales Profile Picture
    30 on at

    Thanks for the prompt response.
    Can it be done in different files?

    In a single file it does not give me problems, but it is an extension that is already published in business central and what I want to do is use it but in the report extension.

    Thanks.

    Attached images.

    5444.png8168.png

  • Suggested answer
    Vaishnavi J Profile Picture
    3,062 on at

    Hi Josue Morales 

    I tested the same thing in different objects but it does not seems a problem.

    pastedimage1658249311691v1.png

    pastedimage1658249325431v2.png

    Kindly close the VS code and reopen and then add the fields in the Report Extension or reload the window of VS code and proceed with your customization.

    If my answer was helpful to you, please verify it so that other users know it worked. Thank you very much

  • Verified answer
    YUN ZHU Profile Picture
    95,638 Super User 2025 Season 2 on at

    Hi, Of course, I just put it in the same file for the convenience of screenshots.

    But if your two files do not exist in the same extension (app), you need to add the dependency property in app.json.

    More details: https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-json-files#Appjson

    pastedimage1658262091381v1.png

    Hope this helps.

    Thanks.

    ZHU

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 > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,577

#2
YUN ZHU Profile Picture

YUN ZHU 888 Super User 2025 Season 2

#3
Jainam M. Kothari Profile Picture

Jainam M. Kothari 778 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans