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”.
It is a small change :
1. Press CRTL+D to got to the AOT.
2. Expand Classes
3. Locate the DocuActionArchive class
4. Double click on the add method.
5. Move the line of code FormRun parentForm above the function.
6. Click the Save button.
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