Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

How to get the print status in nav 2013

Posted on by 1,745

Hi .

I want to post based on my print condition .

for example if the print status is cancel ,or failed ,user cannot able to post .how can i do in nav 2013 

Thanks in Advance.

*This post is locked for comments

  • Verified answer
    Erik Hougaard Profile Picture
    Erik Hougaard 177 on at
    RE: How to get the print status in nav 2013

    If you look at the way the printed invoice counter is implemented, its done on a OnPostDataItem section on the report - So that is your design pattern. Start your logic there. If you want to separate your logic, you can set a bool "allow posting" in the report and the somewhere after the COMMIT you call your posting code.

    A bigger problem is, that printing has become a very asynchronous operation, so detecting a "failed" print is almost implossible from the printing application.

  • mmv Profile Picture
    mmv 11,465 on at
    RE: How to get the print status in nav 2013

    Hi,

    After the check is printed, you may COMMIT the transaction and check for the field value "Check Printed".  If it's True, you may fire the code to Post.  

    What if your Posting routine fails due to validation errors?  

  • javedakhtar Profile Picture
    javedakhtar 1,745 on at
    RE: How to get the print status in nav 2013

    i have customised a cheque format .my client requirment is that he want first print a cheque than it will automatically post otherwise not

  • Mohana Yadav Profile Picture
    Mohana Yadav 59,139 Super User 2024 Season 2 on at
    RE: How to get the print status in nav 2013

    What did you try and what is not working?

    Please try to implement and let us know if you have any issues..

  • javedakhtar Profile Picture
    javedakhtar 1,745 on at
    RE: How to get the print status in nav 2013

    Dear Sir ,

    My requirement is when i will print my cheque than only it can post .

    but when print is failed due to some reason than it cannot be posted .how could i do it ?

  • Mohana Yadav Profile Picture
    Mohana Yadav 59,139 Super User 2024 Season 2 on at
    RE: How to get the print status in nav 2013

    Assuming Print status is a customized field, you need to do customizations for this.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans