Adding and Configuring the AttachmentViewer

The AttachmentViewer control allows you to download and view attachments.

  1. In the Hybrid App Designer, select Screen Design > Palette > Controls.
  2. Click AttachmentViewer and then click in the screen.
  3. From the Properties view, configure the Attachment Viewer:
    1. Select the AttachmentViewer control.
    2. Click the Properties tab.
      If you do not see the Properties tab, right-click anywhere in the Screen Design page, and select Show Properties View.
    3. Click General in the left pane to configure the general properties for the AttachmentViewer.
      You can bind the AttachmentViewer control to data in one of two ways:
      • Keys, or
      • Object queries
      Note: MBO attributes displayed as attachments in a Hybrid App must be binary type, no matter what the corresponding backend datatype is.
  4. (Optional) Click Parameter Mappings to bind the parameters (if any) of an operation or object query to keys or context data, such as DeviceName, BackEndPassword, BackEndUser, and so on
    For information about the parameters and how they map to MBO operations and queries, see WorkflowClient.xml File in Developer Guide: Hybrid Apps.
  5. (Optional) Click Personalization Key Mappings if you have a mobile business object with load parameters mapped to transient personalization keys, and want to specify values for those personalization keys when you invoke an operation or object query from the Hybrid App package.
    This can be useful for loading only specific data into the consolidated database from large data sources.
  6. Select File > Save.