Skip to main content
LinkedIn
Copied!

Table of Contents

Enabling attaching files to an application

Applicable to Theme UI-Kit applications

Enable application users to attach files to a desktop, mobile, or an offline-enabled application by adding the Attach content control (pxAttachContent).

Users can add files to an application by using either the file browser or the drag-and-drop functionality. You can choose to display this control as a button, a link, or an icon.

The Attach content control is also supported in offline-enabled applications. For more information, see Attach content support in offline mode.

  1. On the Design tab, from the Action list, drag Attach content onto the work area.

  2. Click the View properties icon for the control.

  3. In the Cell Properties window, next to the control name, click Change, and then select Attachments.

  4. Optional:

    On the General tab, configure the following settings:

    • Display options for the control.
      1. In the Displayed as list, specify whether to display the control as a button, link or icon.
      2. In the Button caption list, specify the button caption as text or a property reference.
      3. In the Text field, enter a label for the control.
      4. In the Image source list, specify image source to be a simple image, property, icon class, or none.
      5. In the Helper text list, specify whether to display a tooltip.
      6. In the Visibility list, specify whether to always display the control, or only based on an expression or a when rule.
      7. In the Disable list, specify whether to never or always disable the control, or only disable based on an expression or a when rule.
    • Attachment settings for the control.
      1. In the File name list, specify whether to use the default file name, or based on a property reference or text.
      2. In the Category list, specify a category or one based on property reference.
      3. In the Attach to list, specify whether to attach to a work item or a page.
    • Attachment compression parameters for mobile apps. For more information, see Configuring file size options for the Attach content control.
  5. Click Submit.

At run time, users can attach files to cases according to the following scenarios:

  • In a desktop application, users can attach files to their application in the default file browser window.
  • In a Pega Client for a Windows-based application, when a camera is present in the device, a selection dialog box with two options opens. Users can open the native file picker component to attach files to their application or open a live camera view to take a snapshot. When a user takes a picture, the control creates a file with a timestamp-based file name and attaches the file to the application. If no camera is available, the control opens the native file picker component without displaying the selection dialog box.
  • In a mobile app, users can select a file of any type from the device storage, or from any mobile app that is installed on the device, for example, Dropbox, Google Drive, iCloud, Audio Recorder or Camera. In addition, you can configure compression parameters to limit the size of files that are created on a mobile device. The Attach content control also supports sharing file attachments with external mobile apps, except for signature files.
When users restart a mobile app, pending file attachments that they added but did not send to the server might no longer be available.

Related Content

Article

harnesses

Article

Sections
Did you find this content helpful?

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Ready to crush complexity?

Experience the benefits of Pega Community when you log in.

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us