Purchase Invoice number

ORGfitORGfit Member Posts: 2
Hi,

I am a junior NAV consultant and because of my limited experience I have a question that maybe fairly obvious to most of you.

In NAV 4.0 when you post a purchase order you will see a pop-up for like 0.5 seconds with the generated purchase invoice number.
My client wants to know what the number is without looking it up or navigating, so I would like to delay this pop-up. How can this pop-up be delayed?
Any other suggestions to help me solve this issue are welcome too.

Thanks in advance for your suggestions.

Comments

  • MalajloMalajlo Member Posts: 294
    Add MESSAGE in CU:90 at the end of OnRun:

    OnRun(VAR Rec : Record "Purchase Header")
    ...

    UpdateAnalysisView.UpdateAll(0,TRUE);
    UpdateItemAnalysisView.UpdateAll(0,TRUE);
    Rec := PurchHeader;

    MESSAGE('Posted invoice No. is: %1',PurchInvHeader."No.") ;

    SetPostingDate(NewReplacePostingDate : Boolean;NewReplaceDocumentDate : Boolean;NewPostingDate : Date)
    PostingDateExists := TRUE;
    ReplacePostingDate := NewReplacePostingDate;
    ReplaceDocumentDate := NewReplaceDocumentDate;
    ...
  • MbadMbad Member Posts: 344
    You may want to set a variable so it doesnt always show that pop-up since you may be running post batch jobs.
  • kinekine Member Posts: 12,562
    Do not forget to:

    1) Use text constants for the string
    2) Use GUIALLOWED to skip the message if running under NAS
    3) Add some setup to be able to disable this message
    4) Do not forget the bug in some NAV versions, where message are still keeping table locks (the transaction is commited after you close the message) - it can lead to big lock blocks.
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
Sign In or Register to comment.