Question2Replies62Views×Close popoverRussel Kuate (RusselK0) Capgemini Capgemini FR View ProfileSend Message RusselK0 Member since 2020 22 posts Capgemini Posted: June 23, 2020Last activity: August 2, 2020Posted: 23 Jun 2020 19:38 EDTLast activity: 2 Aug 2020 0:15 EDT Use pyDefault to set a page listHi, I would like to know how to use pyDefault (or even pySetFieldDefaults) in order to pass default values into a page listThank you Pega Platform 8.4 Data Integration ×Close popoverFacebookTwitterLinkedinEmail Copy Link Copied! Posted: 8 months agoPosted: 24 Jun 2020 5:51 EDT×Close popoverAngel Hermira (HERMA) PEGA Product Manager, Robotics Pegasystems GB View ProfileSend MessageHERMA PEGA replied to RusselK0Hi,pyDefault is the default Data Transform rule that it is invoked generally when the first instance of the class it is created to set the default values.In the Page List scenario you have potentially two different pyDefault rules: - Parent class which has a Page List child property. - Child class which is the one defined in the Page List property.For example a Computer has a list of Components. Computer.Components(). You could simply preset some components when the Computer class is created by using a pyDefault data transform like this: In the context of Computer: set .Components(1).Type="Video" set .Components(2).Type="Storage" set .Components(3).Type="Memory"The problem doing it like this is that the Components class property pxObjClass won't be correctly set. The right way of doing it would be:In the context of Computer: update page .Components(1) in the context of Components(1) apply data transform pyDefault with parameter (ComponentType) set to "Video" set .Type = Param.ComponentType update page .Components(2) in the context of Components(2) apply data transform pyDefault with parameter (ComponentType) set to "Storage" set .Type = Param.ComponentType update page .Components(3) in the context of Components(3) apply data transform pyDefault with parameter (ComponentType) set to "Memory" set .Type = Param.ComponentType You could do similarly using Activity rules and using Page-New indicating the pyDefault data transform rule.Regards,Angel Posted: 7 months agoPosted: 2 Aug 2020 0:15 EDT×Close popoverPavan Kalyan Kanaparthi (kanap2) PEGA System Architect Pegasystems Inc. IN View ProfileSend Messagekanap2 PEGA replied to RusselK0You can either hardcode the index value and set pagelist(1).propname or use APPEND and set pagelist(<APPEND>).propname in the pyDefault Data Transform.