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

In what area is the "Ok" button located to modify it?

(0) ShareShare
ReportReport
Posted on by 450

So i want to modify the Ok button of a page but for that i'm assuming I need the area in which the button is located.

Could anyone tell me which one it is or if i'm wrong what i need instead?

Thanks in advance.

I have the same question (0)
  • Verified answer
    Avinash B Profile Picture
    1,455 on at

    Hi

    I am assuming, on clicking the OK button on the page you want to perform some business logic.

    If this is the case, then you can use the OnQueryClosePage trigger of that page. Here you will have CloseAction, which tells you what is the action performed to close the page.

    If the page has opened in lookup mode, then you have you use Actions like

    IF PageVariable.RUNMODAL = ACTION::OK THEN BEGIN

        // Business Logic

    END;

    Regards

    Avinash B

  • InsertX Profile Picture
    450 on at

    Fixed it before the reply but i did make use of the runmodal function with LookupOk.

    Thanks anyway

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,468

#2
YUN ZHU Profile Picture

YUN ZHU 923 Super User 2025 Season 2

#3
Sumit Singh Profile Picture

Sumit Singh 607

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans