Question

IS there a bug for set attachment category in the Attach content control?

I am trying to set a default attachment category as the post below but all categories always come out somehow.

our version is 7.2.1 and the setting is also attached? Is there a know issue for this? I saw there is an issue in v7.1.8 but not in v7.2.x

[Resolved] How to set attachment category when upload file with mobile ?
https://pdn.pega.com/community/product-support/question/resolved-how-set-attachment-category-when-upload-file-mobile

***Updated by moderator: Lochan to update Categories***

**Moderation Team has archived post**

This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.

Group Tags

Correct Answer
December 18, 2017 - 2:43pm

Upon reviewing the associated SR, it was resolved with the following explanation:

The category will be populated properly when the screen is opened in mobile but when it is opened in desktop, the attach content control behaves like a normal file atttach functionality.

Comments

Keep up to date on this post and subscribe to comments

November 30, 2017 - 2:55am

Hi, what do you mean by - "all categories always come out somehow"

Whatever attachment category you select in property panel will be used at runtime to attach the file to workobject.

Pega
December 3, 2017 - 8:57pm
Response to Vikas@Multichannel

Hi Raidv,

Thank you for your reply.

Yes. I mean all categories always come out in a drop down list.

Do you mean that if we do not select anything the one we set in the property will automatically set?

Is there any way we can stop listing other categories in the drop down list?

 

December 4, 2017 - 12:24am
Response to okar1

This is a design time configuration of attachment category, I don't see any reason why all categories(in current hierarchy) shouldn't be listed in there. The list is what is shown in OOTB attachment gadget as well. Do you have any business justification to show limited set of categories? 

If you do not select any category, default 'File' category is used at runtime. 

You can also use property reference and whatever is the value of property at runtime will be the category used while saving attachment.

Pega
December 4, 2017 - 8:53am
Response to Vikas@Multichannel

Justification is: We do not want users to set other categories other than the one we set because we have a section which we need to show files in the category only. I also remember that we were able to fix the category before...

Anyway, I also submit SR to check whether there is a way to archive what we want to do.

Thank you & Regards,

 

December 4, 2017 - 9:06am
Response to okar1

Hi!

Could you please reply with the SR ID that you opened so that we may track for you?

Thanks!

Marissa | Community Moderator | Pegasystems Inc.

Pega
December 4, 2017 - 8:32pm
Response to MarissaRogers

Hi,

Here is SR ID for this topic.

SR-B95831 Updated: set attachment category in the Attach content does not work

December 4, 2017 - 11:45pm
Response to okar1

Who is 'users' in your case? Is it pega-developer/designer or end-user?

Since category is a design time configuration, end-user can never override it.

December 18, 2017 - 2:43pm

Upon reviewing the associated SR, it was resolved with the following explanation:

The category will be populated properly when the screen is opened in mobile but when it is opened in desktop, the attach content control behaves like a normal file atttach functionality.

Marissa | Community Moderator | Pegasystems Inc.

Pega
December 18, 2017 - 8:16pm

Since this is working as a design, I had customized the flow and activity base on the article below.

Drag and Drop attachments-Default Category is not set
https://pdn.pega.com/support-articles/drag-and-drop-attachments-default-category-not-set

Thank you.