?We have discovered that when the following dialog box pops up, some users are inadvertently checking the “Disable button” checkbox, which results in the Attachments button not highlighting on SOs, POs, etc when it should be highlighted.
Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā The form name is Dialog, and the Caller is the DocuToolbarButtonCheck class.
Is there a setting in AX 2012 that controls whether or not this dialog box pops up?Ā If not, can we prevent the box from popping up via X++ code?Ā Since we don’t want the users to disable the button, it makes more sense to prevent this dialog box from popping up in the first place.
—————————— Rudy Salcedo Senior Programmer/Analyst LaForce, Inc Green Bay WI ——————————
—————————— Harald Pfitzner Gebr. Dorfner GmbH & Co. KG Hirschau —————————— ——————————————-
Rudy Salcedo
Member
September 14, 2018 at 5:13 PM
?Harald, thanks for your suggestion.Ā I actually did find a way to disable that popup box by modifying the DocuToolbarButtonCheck.main() method.Ā I basically just commented out the 3 lines of code andĀ added a return statement, which prevents the popup from rendering.Ā But it might be a good idea to also implement your suggestion.Ā Thanks!
—————————— Rudy Salcedo Senior Programmer/Analyst LaForce, Inc Green Bay WI —————————— ——————————————-
Angna Thakkar
Member
September 17, 2018 at 10:10 AM
To prevent this Optimizing toolbar button dialog we can comment line no. 5 and 8 of main method in DocuToolbarButtonCheck class, so the dialog which is called from base class i.e. RunBase from which Ā DocuToolbarButtonCheck class is extended would not be executed as shown in below screenshot.
Please note:
This action will also remove this member from your connections and send a report to the site admin.
Please allow a few minutes for this process to complete.
Report
You have already reported this .
Welcome to our new site!
Here you will find a wealth of information created for peopleĀ that are on a mission to redefine business models with cloud techinologies, AI, automation, low code / no code applications, data, security & more to compete in the Acceleration Economy!