Strange issue with reports from a Server based class
Ok,
So one of the tasks that was given to me at work was to take an consolidate the printing of paper work that goes along with an order. The Confirmation, the Packing Slip, and the Shipping Labels.
I startd to try and do this by first taking the SalesFormLetter_Confirm class, and overriding the SalesFormLetter.run() {...} at the Confirm level. Once I did that, I then went to the while(query.next()) {...} code block so I could call the reports. Well the same code that worked from behind the Confirmation.Clicked() {...} method did not work for One of the three reports.
I walked through the code, but could never get the third report to come out. I was puzzled. Finally working through it, come to find out that if you do a
Find a job at: www.DynamicsAXJobs.com
So one of the tasks that was given to me at work was to take an consolidate the printing of paper work that goes along with an order. The Confirmation, the Packing Slip, and the Shipping Labels.
I startd to try and do this by first taking the SalesFormLetter_Confirm class, and overriding the SalesFormLetter.run() {...} at the Confirm level. Once I did that, I then went to the while(query.next()) {...} code block so I could call the reports. Well the same code that worked from behind the Confirmation.Clicked() {...} method did not work for One of the three reports.
I walked through the code, but could never get the third report to come out. I was puzzled. Finally working through it, come to find out that if you do a
report.run()without first doing a
report.prompt()then from within a class, Some reports will not work correctly. I am posting this in hopes that someone in the future who might run into a sjmilar issue will have the solution!
Find a job at: www.DynamicsAXJobs.com
0 Comments:
Post a Comment
<< Home