Share via


Using document handling to add image in Demo VM

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 https://blogs.msdn.com/lcash