Question
loop embedded into loop
Hello
I need to enter data in data table from included page (clipboard attached). I use nested loop and I can't get data from outer loop to inner. How can I form link to object like: pyWorkPage.Carriage(<current>).TTN(<current>).NumberTTN When using local variables gives an error: The property pyWorkPage.Carriage(1) was of mode Page while com.pega.pegarules.data.internal.clipboard.ClipboardPropertyImpl.getStringValue() was expecting String mode. Details: (none)
Also when using the reference type:pyWorkPage.Carriage.TTN(<current>).NumberTTN or pyWorkPage.Carriage().TTN(<current>).NumberTTN, we get no result
***Updated by moderator: Lochan to update platform capability***
Hi Razdin,
From your attachment, the clipboard structure is like as below
-Carriage page
--Carriage Pagelist
--TTN Pagelist
So If you are in work page context try as Carriage.Carriage(<CURRENT>).TTN(<CURRENT>).NumberTTN and also make sure to put a loop on Carriage pagelist and TTN Pagelist and change above code accordingly.
let me know If you fail to do so and add the attachment.