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

  • Suggested answer
    4BzSoftware Profile Picture
    4BzSoftware 6,071 on at
    RE: display msgbox

    Thanks Suresh and Miguel! I forget checking the version of questioner.

    Both ways are fine. But I prefer to edit codeunit than each form, one shot many birds :-)

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

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

  • Suggested answer
    Suresh Kulla Profile Picture
    Suresh Kulla 44,656 on at
    RE: display msgbox

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

  • Suggested answer
    4BzSoftware Profile Picture
    4BzSoftware 6,071 on at
    RE: display msgbox

    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.

  • mmv Profile Picture
    mmv 11,467 on at
    RE: display msgbox

    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
    Suresh Kulla Profile Picture
    Suresh Kulla 44,656 on at
    RE: display msgbox

    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.

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

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

  • mmv Profile Picture
    mmv 11,467 on at
    RE: display msgbox

    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
    keoma Profile Picture
    keoma 32,675 on at
    RE: display msgbox

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

  • RE: display msgbox

    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

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,407 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans