Announcements
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.
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
Hope this helps.
Thanks.
ZHU
I tested the same thing in different objects but it does not seems a problem.
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
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.
Hi, I did the same test as you and it didn't seem to be a problem.
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
André Arnaud de Cal... 291,359 Super User 2024 Season 2
Martin Dráb 230,370 Most Valuable Professional
nmaenpaa 101,156