Question
TATA Consultancy Services
IN
Last activity: 4 Sep 2023 7:40 EDT
Child case attachment is displayed with Parent Cased ID instead of child case ID
in the attachments section of a parent case we have a check box to display the child cases attachments , we are able to fetch child case attachments successfully but one issue not able to figure out the child case attachment in parent case attachments section is displaying with parent case id instead of child case id along with the person uploaded and the uploaded date.
can someone help here
-
Reply
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
TATA Consultancy Services
IN
@Anoop Krishna , this is achieved by modifying the pyAttachmentFeedDescription control and D_AttachmentList data page post processing activity.
Bits in Glass
IN
@AnjaneyuluG can you please check and let us know how the child case attachments are displayed in parent case? Is the attachment itself copied to parent case from child case or just section with dpage is used to display attachments?
TATA Consultancy Services
IN
there is a check box and on checking that check box we are copying the child case data to one of the pagelist property from D_AttachmentList data page by passing the child case key as a parameter and we have given this pagelist as a source to repeating dynamic layout and inside repeatig dynamic layout we are calling a OOTB section named "pyCaseAttachmentItem" to display the attachments. this is the approach we followed, except cased id under the attachment all other details are populated as expected like creator name and created date and time and attachment category selected.
Let me know if further information required
Bits in Glass
IN
@AnjaneyuluG okay you are copying from D_attachmentList to another pagelist. That means you are setting the case id value too. Can you please check if that set is correct?
TATA Consultancy Services
IN
I did set the pyid in the pagelist but it did not workout, whereas pagelist is under pyworkpage, hence it is taking pyid from top page but not from the pagelist.
Bits in Glass
IN
@AnjaneyuluG okay suspected the same. You would be passing child case pzinskey to the dpage. Outside the loop please take case id substring and set it to a param and set that param to case id field.
TATA Consultancy Services
IN
@Anoop Krishna I did that, still it is considering the pyid from pyWorkPage
Bits in Glass
IN
@AnjaneyuluG okay, can you please try hardcoding that property to check it's behaviour. Also try using any other property for storing caseid.
TATA Consultancy Services
IN
@Anoop Krishna Still no luck, tried hard coding and tried by setting the case id with different property, but same behavior.
Accepted Solution
TATA Consultancy Services
IN
@Anoop Krishna , this is achieved by modifying the pyAttachmentFeedDescription control and D_AttachmentList data page post processing activity.