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 :
Microsoft Dynamics NAV (Archived)

display msgbox

(0) ShareShare
ReportReport
Posted on by

Hi request you to help me,

Whenever I press f3 key on customer card,

and on f3 on sales invoice header

i want show msg or modalbox or display the company name.


How can I do..

Appreciate your help.. thanks

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    keoma Profile Picture
    32,729 on at

    add message(COMPANYNAME) to form trigger onnewrecord.

    you could also add a textbox to the form with sourceexpr=COMPANYNAME.

  • Community Member Profile Picture
    on at

    thanks and message(companyname) I want to display before posting sales invoice and purchase invoice,  purchase credit memo and sales credit memo, where should i paste the above code

  • Suggested answer
    keoma Profile Picture
    32,729 on at

    edit codeunits sales post and purchase post. add the code into the first line of the onrun trigger.

  • mmv Profile Picture
    11,471 on at

    Hi,

    You may write a message box on the Sales Invoice Form and Purchase Invoice Form, on the Post button rather than disturbing the code unit.

  • Suggested answer
    Miguel Llorca Gómez Profile Picture
    7,019 User Group Leader on at

    I'm with Mahesh... from my point of view you should better change the forms instead the CUs.

  • Suggested answer
    Suresh Kulla Profile Picture
    50,243 Super User 2025 Season 2 on at

    I recommend to change the codeunit instead of the forms because you have to customize  4 or 5 forms instead of adding code in one place, and when ever you want to change something you have to change 4 or 5 different objects instead of one.

    When you add a change to codeunit just make sure you throw the message box only IF GUIALLOWED that way  it does not affect any other routines.

  • mmv Profile Picture
    11,471 on at

    Hi,

    If you are modifying the Codeunit, you have to handle separately while posting the transactions using the batch, e.g Post Batch, instead, if you are writing it on the form, you have to write only one statement for each form. (Sales Invoice and Purchase Invoice).

  • Suggested answer
    4BzSoftware Profile Picture
    6,073 on at

    Hi navbsa,

    Take a look at System Indicator:

    community.dynamics.com/.../nav-2009-r2-system-indicator

    It seems that you want users know their working company.

  • Suggested answer
    Suresh Kulla Profile Picture
    50,243 Super User 2025 Season 2 on at

    I think he is on Nav 5.0 so unfortunately system indicator is not an option.

  • Suggested answer
    Miguel Llorca Gómez Profile Picture
    7,019 User Group Leader on at

    Not System Indicator in NAV 5 ... so... that's not an option. You should edit the forms :-)

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 > 🔒一 Microsoft Dynamics NAV (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans