Showing posts with label visual studio. Show all posts
Showing posts with label visual studio. Show all posts

Thursday, 17 November 2016

create form in AX7

Lets have a look at creating a form. This is probably a little more exciting than the previous posts. As this is totally new to AX7.
Right click and Add > New
Select the Form object from the AX7 Artifacts


2016-01-14_1558


Initially it will show the pattern as unspecified. This is something we should always set if we expect our form to work across platforms (browsers). Otherwise we can set it to custom and it is free form. Which is a bit messy and unsupported.


2016-01-14_1600
Right click the Design and apply a pattern.
2016-01-14_1601


Once you have applied a pattern the bottom part of the form will show you the expected pattern. Now it is a matter of filling it up with the required control types.
Lets right click New > control we want to add.


2016-01-14_1608


Once you have added all your required controls.
Drag the table from the AOT to the Data Sources node. It should look something like this.


2016-01-14_1611
2016-01-14_1613


Now you can preview by clicking the tab.

Build your VS project. There should be no errors.
If you want to debug and run in a browser. Make sure to set the object as your Start Object.
\

2016-01-14_1614

create form in AX7

Lets have a look at creating a form. This is probably a little more exciting than the previous posts. As this is totally new to AX7.
Right click and Add > New
Select the Form object from the AX7 Artifacts


2016-01-14_1558


Initially it will show the pattern as unspecified. This is something we should always set if we expect our form to work across platforms (browsers). Otherwise we can set it to custom and it is free form. Which is a bit messy and unsupported.


2016-01-14_1600
Right click the Design and apply a pattern.
2016-01-14_1601


Once you have applied a pattern the bottom part of the form will show you the expected pattern. Now it is a matter of filling it up with the required control types.
Lets right click New > control we want to add.


2016-01-14_1608


Once you have added all your required controls.
Drag the table from the AOT to the Data Sources node. It should look something like this.


2016-01-14_1611
2016-01-14_1613


Now you can preview by clicking the tab.

Build your VS project. There should be no errors.
If you want to debug and run in a browser. Make sure to set the object as your Start Object.
\

2016-01-14_1614

Friday, 27 November 2015

Attaching Ax32Server.exe process to Visual Studio


Last week I needed to debug a batch job. In AX2012 all the batch jobs run in IL. To debug these jobs you need to use Visual Studio and attach the AOS process. When I tried to attach Ax32Serve.exe, the process was disabled in the window as show below

Attach to process window
This made me wonder what is stopping the process from being available to attach. After a little investigation I realized that we are using Debug Diagnostic tool to create the dumps in case the AOS crashes and one of the crash rules to monitor the AOS was active. After de-activating the rule the AOS process was available to be attached for debugging purpose. So apparently only one application can monitor a running process.