| Santosh.'s profileDynamics AxPhotosBlogLists | Help |
|
December 30 Suppressing Infolog message in Dynamics AX2009This article is posted based on the requirement, we had an issue of executing AX report which would always result in an infolog stating as "The Report is scaled 88% to fit to page." When going through certain articles in the google, the generic way given to supress an infolog was by calling this.printJobSettings().suppressScalingMessage(true) at init method of report after super() call in SysReportRun/runReport class. But to my requirement it actually didn't work in AX009. So i tried in a different manner.
Here is the ways by which we can force the client report to suppress the infolog after report is executed
1) In the init method of the <<Report>> after super call use the following code
element.printJobSettings().clientPrintJobSettings().suppressScalingMessage(true);
2) Setting the ReportDesign properties "FitToPage" to "No".
By the above option there is no need of any addition code in the init() nethod of the report.
I'm not sure why element.printJobSettings().suppressScalingMessage(true) doesn't work in the first place when call through init method of the <<Report>> after super. Any how i hope to do further research and will find the exact reason behind this issue.
......................................... December 10 Classes "RunOn: Server" in Dynamics AXHere is the sample job which gives the details list of classes called on "Server".
static void Classes_CalledOnServer(Args _args) { #AOT TreeNode treeNode; str property = 'RunOn'; [Property Name in Property Sheet] str propertyValue = 'Server'; [Property Value] ;
treeNode = TreeNode::findNode(#ClassesPath).AOTfirstChild(); while (treeNode != null) { if (treeNode.AOTgetProperty(property)== propertyValue) { // Displays the output into Message Window. //Debug::printTab(DebugPrintTab::ActiveX, treeNode.AOTname()); This is unable to list all classes. So replace with below info(treeNode.AOTName()); }
treeNode = treeNode.AOTnextSibling(); } } |
|
|