Skip to main content


         This documentation site is for previous versions. Visit our new documentation site for current releases.      
 

Adding attachment types

Updated on January 18, 2021

Define new attachment types to increase the range of files that you can save as data items and reuse in your application, for example, screenshots.

  1. In Dev Studio, create a class for the attachment type that you want to add and specify the following inheritance settings for the class:

    • Pattern inheritance from the PegaPs-Data-Attachment class
    • Directed inheritance from a subclass of the Data-WorkAttach- class that matches the new attachment type

    If the existing subclasses do not cover the attachment type that you want to add, create a new subclass.

    For more information about creating classes, see Creating a class.

  2. Override the AttachmentScreen section in the new class to add the fields for the new attachment type that you require, for example, add a drop-down list to specify the category of the attachment.

    For more information, see Sections.

  3. Save the SaveAttachment activity of the Data-WorkAttach- class into the new class and change its name to AttachmentSave.

Have a question? Get answers now.

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

Did you find this content helpful?

Want to help us improve this content?

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

Pega.com is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us