How to Override the Field Definition to Display Images in a Report

Description

Fields containing Ink or PNG data can be rendered as images in a Report. This is done by overriding the field definition.

Fields can be assigned special types that Alpha Anywhere's reporting engine can interpret as images. There are several image field types that you can choose from:

Data type
Usage
Bitmap

For fields that contain a bitmap image. Field can be binary blob data or a character field containing a base64 encoded image.

Jpeg Image

For fields that contain a jpeg image. Field can be binary blob data or a character field containing a base64 encoded image.

PNG Image

For fields that contain a png image. Field can be binary blob data or a character field containing a base64 encoded image.

Image File Reference

For fields that are image file references. An image file reference is the path to where the image is stored.

SVG Image

For fields that contain SVG data.

Ink Image

For fields that contain Ink data.

To assign an image type to a field, you need override the field definition. Fields can be overridden when you define the report's SQL data source. Overrides can be defined during report creation or after the fact by editing the Report SQL DataSource definition.

  1. For an existing report, on the Web Projects Control Panel, right-click on the report and select DataSource > Edit DataSource definition....

    images/overrideFieldDef1.png
  2. Select Edit the ad hoc DataSource and click OK.

    images/overrideFieldDef2.png
  3. On the Specify SQL SELECT Statement tab, click the Advanced Options button to specify definitions for selected fields.

    images/overrideFieldDef3.png
  4. Check the box for Override field definitions of selected fields and click the Field Definitions button.

    images/overrideFieldDef4.png
  5. In the Override Field Definitions dialog, you can override the field type for any field in the SQL query. Select the field whose type you want to override and click the Edit field definition button to choose a new field type.

    images/overrideFieldDef5.png
  6. Choose the desired data type from the Data type dropdown box. Then click OK. If the field type already has an override, you can click the Revert to default link to set the field type back to the original data type.

    images/overrideFieldDef6.png
    To display signatures captured using the Signature Capture control in the UX Component, choose "PNG Image" from the list of options. Signature data captured with the Signature Capture control is stored as a PNG image in Alpha Anywhere.
  7. Set the Override Field Defintion for the fields in your SQL Query. When you are finished, click OK to save the changes.

    images/overrideFieldDef7.png
  8. Place the fields in your Report.

Now, fields defined as images will be rendered as images by the reporting engine.

See Also