.pyPreparedValues is a value list property in the class Code-Pega-List. In the screenshot below the value for the first list element is getting set. You can set more such entries using the Property-Set method. It should be similar in a data transform as well.
Thank you for your reply. I have a use case that I have a value list property say PropertyValueListA, and I have predefined elements that Element1, Element2, Element3, and Element 4, the user should be able to select one or some or none of the elements from the UI, which may be like for pyUserRoles in the AccessGroup in the designer studio. Would you please provide some information in this design?
You can refer to the UI Gallery "Build a list "example for this.
This feature can be used when a user wants to select multiple items and maybe build a list which can then be used for a separate purpose. The user may want to build a list from an existing list by choosing each and every item from it or may wish to build a new list by searching over a big list.