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

Confirmation window in job

(0) ShareShare
ReportReport
Posted on by 95

Hello,

on several occasions I have had to subscribe to an event to prevent a confirmation message from appearing to the user, such as OnMatchUsageUnspecifiedOnBeforeConfirm.

My problem is that I can't find a way to prevent the confirmation message from appearing when changing the "No." field in the job card. Could you help me?.

pastedimage1614250342011v2.png

I have the same question (0)
  • Verified answer
    Steven Renders Profile Picture
    5,672 Moderator on at

    When you change the Pk field of a table, that is a Rename() event, and by default this popup appears. There's no way to avoid this I think...

    It's to avoid that a user accidentally changes the No. When you click Yes, the No. is changed and also updated in tables that have a relationship to it.

    You could use the OnRename() trigger, or an event on it, to add some extra business logic to it.

    Or, use a page extension to make the field not editable, to avoid the rename from happening and so also no popup...

  • MiguelRospa Profile Picture
    95 on at

    Thank you very much for the reply. What I want to achieve is to update the job code once a series of fields are filled in, and that window does not appear. I understand that it is not possible.

  • Verified answer
    Steven Renders Profile Picture
    5,672 Moderator on at

    I think you can do it by using the Rename() function in your code and then no popup should be displayed, not 100% sure, but you can give it a try.

  • MiguelRospa Profile Picture
    95 on at

    It works! Thanks a lot!

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

#2
YUN ZHU Profile Picture

YUN ZHU 658 Super User 2025 Season 2

#3
Sumit Singh Profile Picture

Sumit Singh 595

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans