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.
@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?
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.
@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?
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.
@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.