Adding worker picture to the WorkerIDCard Microsoft Dynamics AX 2012

Requirement: There is a need to modify the jmgWorkerCard report by adding the worker’s image (HcmPersonImage)

Solution: Image is in the HcmPersonImage table, it only has 2 fields: person and image following code worked in the processReport part of the jmgWorkerCardDP class:

tmpWorkerCard.Image = hcmPersonImage::find(hcmWorker.RecId).Image;
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s