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

Validate field on request page on report (processedonly) in BC

(0) ShareShare
ReportReport
Posted on by 25

Hi,

I have created report (processedonly), on request page I have few fields and how to make these field manditory?

pastedimage1638354978853v1.png

I want to do some validation on buttons Plan or OK. or do some check before this report is scheduled to run as Job queue entries. May I know how to do it on BC15 or 19 onprem?

Thanks in advance.

I have the same question (0)
  • Suggested answer
    YUN ZHU Profile Picture
    98,516 Super User 2026 Season 1 on at

    Hi,  you can add these fields check in Report Trigger. Such as trigger OnPreDataItem().

    Examlpe:

    pastedimage1638491125016v1.png

    pastedimage1638491155799v3.png

    pastedimage1638491142441v2.png

    Hope this will help.

    Thanks.

    ZHU

  • Yasmeen sultana Profile Picture
    25 on at

    Thank you so much for your reply.

    This report has no dataItem it is just for processing

    I solved it by validating on trigger QueryClosedPage of request page like below  

         trigger OnQueryClosePage(CloseAction: Action): Boolean

           var

           begin

               if (CloseAction = Action::OK) or (format(CloseAction) = 'Schedule') then begin

                   if (gCatVendorNo = '') then

                       Error('Please select the vendor catalog');

                   if (gPriceValidDate = 0D) then

                       Error('Please select the Valid Pricce date');

               end

           end;

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!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,821 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,122 Super User 2026 Season 1

#3
Dhiren Nagar Profile Picture

Dhiren Nagar 959 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans