BIRT Report displaying doclink images in reports

It is possible to display attached images on records in Maximo BIRT reports. To display attached images we can use an image control with the path of the image in the URI with file:// appended to the path. I tested it in linux and was able to view the output. Important to note that this only works for PDF outputs as the report is rendered on server and image paths are only accessible from server. Also for windows servers we might have to add an additional slash i.e. file:/// but I haven't tested it. Sample output is attached below.






Another possible way to display images might be to request the attachment by calling an OSLC query and download the image.

e.g.

1. Get record:

http://10.192.200.201:9082/maximo/oslc/os/mxwo/?_lid=maxadmin&_&lpwd=maxadmin&oslc.pageSize=1&oslc.where=wonum="17911725"

2. Get doclinks/attachments list

http://10.192.200.201:9082/maximo/oslc/os/mxwo/_REkvMTc5MTE3MjU-/doclinks?_lid=maxadmin&_&lpwd=maxadmin&oslc.pageSize=1

3. Then download the attachment

http://10.192.200.201:9082/maximo/oslc/os/mxwo/_REkvMTc5MTE3MjU-/doclinks/0-322874?_lid=maxadmin&_&lpwd=maxadmin&oslc.pageSize=1





Comments

Popular posts from this blog

BMXAA6713E - The record could not be retrieved from the database. Error

Rebuilding Maximo Text Indexes due to Query performance issues

List of things checked by Maximo Integrity checker