-
I created the method in Axapta for the print report. Then I called this method from .Net. The report won't print. What can be wrong in the code? I tested this method in Axapta and Report is printing. This is the code from Axapta method: ReportRun report; Args args = new Args(); MenuFunction ReplenishmentMenu;...
-
When a report runs the Infolog appears with "Right Edge of Paper Exceeded on Page 1......" I have tried adding the element.printJobSettings().suppressScalingMessage(true); in the Init method below Super. But this does not have any effect. I do not want to turn the infolog off altogether just...
-
I'm using System.Data.SqlClient.SqlCommand inside Ax and I need to handle some exceptions that occur excuting this class. In c# it would be like that try{ <code> } catch (System.Data.SqlClient.SqlCommand exception){ <code> } How can I do it inside Ax? Thanks in advance
-
Update: I was able to figure this out. It can be done by looping through the controls on the form and getting the FormControlID for each one and then removing the with element.design().removeControl(FormControlID). Apparently removes need to be done at a higher level than the tab page.
-
In AX 4.0 I am creating a new form. It is a typical AX form with a tab control, the first tab containing a grid and the second tab containing various groups and edit controls. The difference is that the second tab page is created on the fly at run time based on what record is selected on the grid on...
-
I have a custom temporary table with twelve period amount fields. This table is used to support an inquiry form and is filled dynamically based on user specified criteria. I would like to be able to override the (field label) headings in the grid to display the start dates of the individual periods as...
-
I created the method in Axapta for the print report. Then I called this method from .Net. The report won't print. What can be wrong in the code? I tested this method in Axapta and Report is printing. This is the code from Axapta method: ReportRun report; Args args = new Args(); MenuFunction ReplenishmentMenu;...
-
When a report runs the Infolog appears with "Right Edge of Paper Exceeded on Page 1......" I have tried adding the element.printJobSettings().suppressScalingMessage(true); in the Init method below Super. But this does not have any effect. I do not want to turn the infolog off altogether just...
-
I'm using System.Data.SqlClient.SqlCommand inside Ax and I need to handle some exceptions that occur excuting this class. In c# it would be like that try{ <code> } catch (System.Data.SqlClient.SqlCommand exception){ <code> } How can I do it inside Ax? Thanks in advance
-
Update: I was able to figure this out. It can be done by looping through the controls on the form and getting the FormControlID for each one and then removing the with element.design().removeControl(FormControlID). Apparently removes need to be done at a higher level than the tab page.