Question2Replies42Views RusselK0 Member since 2020 21 posts Capgemini Posted: June 23, 2020Last activity: August 2, 2020 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: 5 months agoHERMA 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: 4 months agokanap2 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.