Reflections on Microsoft Dynamics AX

Reflections on Microsoft Dynamics, ERP Projects and Product

Using document handling to add image in Demo VM

Using document handling to add image in Demo VM

  • Comments 0

Is you are using the AX2009 Refresh 2 demo VM and are using document handling this note will interest you. When you try to add a image, for file attachment you will get an error about “no valid runable code”.

image

It is a small change :

1. Press CRTL+D to got to the AOT.

2. Expand Classes

image

3. Locate the DocuActionArchive class

image

4. Double click on the add method.

image

5. Move the line of code FormRun parentForm above the function.

image

6. Click the Save button.

image

Then close the code window and AOT and you will be able to add the image etc in document handling.

Cheers

Lachlan

Original post at http://blogs.msdn.com/lcash