Custom Reporting -- Add Images to a Report: Difference between revisions

From IHRIS Wiki
(Created page with "This tutorial applies to version 4.0.22 and later. This tutorial will show you how to display images in a report table view. This does not apply to the PDF/Print view. ==Setti...")
 
No edit summary
Line 8: Line 8:
Now you edit the report that is based on this relationship.  Click on the form with the image and then click on <u>Reported Fields</u>.
Now you edit the report that is based on this relationship.  Click on the form with the image and then click on <u>Reported Fields</u>.


[[Image:Report_Image_1.png|Screenshot of Custom Report editor]]
[[Image:Report_Image_1.png|frame|Custom report editor for the photo form]]


Enable the image field and click on '''Link Options'''.
Enable the image field and click on '''Link Options'''.


[[Image:Report_Image_2.png|Image Link Options]]
[[Image:Report_Image_2.png|frame|Image Link Options]]


Fill in the link options as follows:
Fill in the link options as follows:
Line 22: Line 22:
For the link field, select the form id for the form that has the image field.
For the link field, select the form id for the form that has the image field.


[[Image:Report_Image_3.png|Filled in Image Link Options]]
[[Image:Report_Image_3.png|frame|Filled in Image Link Options]]


Click the ''Update'' button at the bottom of the page to save your changes.
Click the ''Update'' button at the bottom of the page to save your changes.

Revision as of 16:43, 13 January 2012

This tutorial applies to version 4.0.22 and later.

This tutorial will show you how to display images in a report table view. This does not apply to the PDF/Print view.

Setting the Link

Any field can be displayed with a link. Form fields of type IMAGE can also be assigned to display the image inline. This tutorial assumes you have a form with an IMAGE field in the form relationship.

Now you edit the report that is based on this relationship. Click on the form with the image and then click on Reported Fields.

Custom report editor for the photo form

Enable the image field and click on Link Options.

Image Link Options

Fill in the link options as follows:

Link url
BinField?field=field&formid=
Link field
form Id
Link Type
Image (img)

For the link url, the field option needs to match the name of the image field in the form. For the link field, select the form id for the form that has the image field.

Filled in Image Link Options

Click the Update button at the bottom of the page to save your changes.

Update the Report View

In a report view for this report, you should enable the image field. Now when you view this report you will see the image displayed.