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 AX (Archived)

Print Button disable after giving print Reports for some Users

(0) ShareShare
ReportReport
Posted on by 207

I Have customized table so i need to create if user click on Print Button for taking print it will give print only one time and then disable for some users not for all. It means higher authority had permission to print again the same content.  

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Rudi Hansen Profile Picture
    4,075 on at

    I do not think there is something like this in standard code, so pointing you to some code is not really possible.

    But you will have to look at how buttons on forms are Enabled/Disabled, and then try to copy that logic, but expand it with what you need extra.

    You can look at Form SalesTable, button buttonUpdateInvoice

    The actual enable/disable of the button i done in the Class SalesTableForm, so you can look for it there.

  • JEMT Profile Picture
    178 on at

    Hi DEEPAKNONU 

    can you share with us on how can you do it?

    Thank you. 

  • JEMT Profile Picture
    178 on at

    ok thanks.

    i get the logic behind on reprint process.

    but there is problem the print on screen/ viewer is still open .. but the user is already printed the Report.

    i want to close the print on screen/ viewer, when the user print in printer..

    please check here .. https://dynamicsuser.net/ax/f/developers/94607/how-close-morphx-report-print-on-screen-after-printing/495074#495074

    please help me, i am stuck there..

  • DEEPAKNONU Profile Picture
    207 on at

    Hey JEMT,

                In this case, you can do one thing make one menu item button or a button and give a command and use your code over it. In my scenario, i can resolve my issue like this.

    Because on button you can control easily as compare to print properties.

  • JEMT Profile Picture
    178 on at

    Hi DEEPAKNONU

    Thanks for reply.

    Yes i already do that, i already have flag.

    but there is problem, the print on screen/ viewer is still open ..

    i want to close the print on screen/ viewer, when the user print in a printer..

  • JEMT Profile Picture
    178 on at

    If we can call/open menuitem(output). Thru code, then

    May be we close it in the same manner ??

    Please let me know if how could do this.

  • JEMT Profile Picture
    178 on at

    Hey Crispin,

    Im not using pdf file to print ..

    Actually, we already have plan,

    We put a series number on how many times they print... they need to send an email request for reprint even its a paper jam.

    My problem is report viewer is still open ..

    I want to close that after user print the report.

    Then i will proceed to the next part ..

    Please let me know, how could i do this ..

    Thanks

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 AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans