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

Notifications

Announcements

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)
  • 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;

  • Suggested answer
    YUN ZHU Profile Picture
    96,266 Super User 2025 Season 2 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

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

News and Announcements

Season of Giving Solutions is Here!

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 1,457

#2
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 742 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 669 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans