Question

8
Replies
221
Views
Avi Reddy (AviR4127)
OJP
Consultant
OJP
US
AviR4127 Member since 2019 3 posts
OJP
Posted: June 15, 2020
Last activity: June 16, 2020
Posted: 15 Jun 2020 21:35 EDT
Last activity: 16 Jun 2020 19:32 EDT
Closed

Looping through pyAttachments and triggering a When Condition

I am looping through attachments on the pyWorkPage which have been created/referenced via a Datapage.

My requirement is to find the index of  pyCategoryName when the pyCategoryName equals "Comatose"

PyAttachments

 

Can some show me what I am doing wrong in the activity below and specify the correct syntax.

 

Loop

When I run the above code, PEGA does not fail.

My Param.testing in step 4. shows the correct length of

'pyAttachments [Refers to D_AttachmentList_3981pz.pxResults]'

My Param.test that I set to zero in Step 2 is still zero which makes me think that Step 3 is not executing at all as it is not of pxResults Type.

How can I loop through 'pyAttachments [Refers to D_AttachmentList_3981pz.pxResults]' under pyWorkPage and will my WHEN rule in 3.2 fire or do I need to reference it using <CURRENT>.  In my pages and classes I have declared TempPage to be the pyWorkPage Class and pyAttachments as Link-Attachment.

 

 

 

Pega Platform 8.3.1 Case Management Healthcare and Life Sciences Solutions Engineer
Moderation Team has archived post, This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.