Question

Attachment Category is not persisted at run-time

Hello Team,

I have a requirement to showcase the attached files. below are the steps I have taken

1. Created an Attachment Category- My requirement was to showcase only the ones attached in that category, Pega displays all the files by default.

2. Select a button as Other and provide the Attach Content control in it, doing so the Attachment category would be enabled and can be selected.

3. Pega always sets the Category as File, regardless of whatever is provided on the Section.

Why is this? Pega in the pzInitAttachContent Activity, 2nd step calls an Activity InitAttachmentPage which determines the Attachment Category in pyDefault Data transform. The Called activity has the Pass parameter page un-checked, because of this the section's parameter is not passed onto the Activity. I am unable to modify it too as it is a final rule. Can pega in the future releases please chek this?

I don't have access to raise support request, so instead i am pasting my findings here so that it might help others.

Correct Answer
December 9, 2019 - 4:46am

As a workaround, Saved as the OOTB sections which refer the datapage to fetch the relevant categories and passed the category as "the one needed"

Con: The category type File would still be appended in the category list, but as the dropdown shows the values the category which is needed is shown by default, unless selected.

Comments

Keep up to date on this post and subscribe to comments

Mod
November 18, 2019 - 9:53am

Hello,

Thank you for reporting this on PSC. Please let us know if you wish for us to log in an enhancement request on your behalf.

Regards,

Lochana | Community Moderator | Pegasystems Inc.

November 27, 2019 - 8:38am

Thanks Lochana,

Please raise the request.

December 9, 2019 - 4:46am

As a workaround, Saved as the OOTB sections which refer the datapage to fetch the relevant categories and passed the category as "the one needed"

Con: The category type File would still be appended in the category list, but as the dropdown shows the values the category which is needed is shown by default, unless selected.