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

Community site session details

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

How to hide the dimension message.

(0) ShareShare
ReportReport
Posted on by 231
Hi everyone,
 
 Is there any way to hide this message in jobs on Business central. Im updating the header dimension field value via coding while im testing im getting this dimension message. I need to skip this message and the default answer is /Yes/
 
 
 
Thanks in Advance.
I have the same question (0)
  • Verified answer
    YUN ZHU Profile Picture
    95,305 Super User 2025 Season 2 on at
    How to hide the dimension message.
    Hi, generally, you can subscribe to the event before the message to skip the message.
    For example,
     
    Solutions to this type of problem:  https://yzhums.com/43837/
     
    Hope this can give you some hints.
    Thanks.
    ZHU
  • yoheswaran Profile Picture
    231 on at
    How to hide the dimension message.
    Thanks for the reply YUN ZHU for Job Card i need the same process i don't have any event in Job Table object. Here the we have the message in "UpdateJobTaskDimQst".
     
  • Suggested answer
    YUN ZHU Profile Picture
    95,305 Super User 2025 Season 2 on at
    How to hide the dimension message.
    Hi, indeed it's a bit troublesome and I'm sorry I didn't fully confirm it.
    You can subscribe to the above event, skip the whole confirmation process, and then modify the dimensions in your code for the lines
    For example,
     
        [EventSubscriber(ObjectType::Table, Database::Job, OnBeforeUpdateJobTaskDimension, '', false, false)]
        local procedure Job_OnBeforeUpdateJobTaskDimension(var Job: Record Job; FieldNumber: Integer; ShortcutDimCode: Code[20]; var IsHandled: Boolean);
        var
            JobTask: Record "Job Task";
        begin
            IsHandled := true;
    
            JobTask.SetRange("Job No.", Job."No.");
            if JobTask.FindSet(true) then
                repeat
                    case FieldNumber of
                        1:
                            JobTask.Validate("Global Dimension 1 Code", ShortcutDimCode);
                        2:
                            JobTask.Validate("Global Dimension 2 Code", ShortcutDimCode);
                    end;
                    JobTask.Modify();
                until JobTask.Next() = 0;
        end;
     
    Hope this helps.
    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

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 3,377

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 2,696 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,512 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans