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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

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

Purchase Order Report Extension

(0) ShareShare
ReportReport
Posted on by 2 Microsoft Employee
I am creating a Purchase order report extension, I have created a custom RDL design as per the client's requirement. I want to make sure that when my custom report design is selected on the Report Layout filter section the Purchase Order No. value must be provided in the filter box of No. 
 
I am able to apply the Error message validation but I want to make that error popup appear only when my custom report design being selected not for default report design. 
I just want add higher level check as follow on my code snippet
 
If layout -> F3CustomPurchaseOrder 
    if PO.N0 -> empty
       Error('PO Number is required')
 
 
 
 
 
Please tell me how can I achieve this in the report extension. Where to get the report design information in the report extension. Below is the code snippet that I have written for the Error Popup message
 
 
 
 
Thanks
I have the same question (0)
  • Suggested answer
    Kamal Khakhkhar Profile Picture
    3,357 on at
    Hii There,
    As per your question you can create an codeunit from which you replace the Custom layout with default layout on opening. OR in that you can replace the report layout with your required Changes in default. And there are no other reports will be able to select other then applied in Rendering.
    You can go through below link for reference.
     
    https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-report-custom-render
     
    Thank You.
    Kamal Khakhkhar.
  • CU27040914-9 Profile Picture
    2 Microsoft Employee on at
    Didn't understand your point Kamal, I just need to fetch which report design is selected in pre-report trigger in my report extension. 
     
     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,138 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,279 Super User 2026 Season 1

#3
AndrewThomas81 Profile Picture

AndrewThomas81 1,192

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans