Closed
sections
Hi
Why do I need to define a section in DATA class if I want to use properties which are defined in DATA classes,
This content is closed to future replies and is no longer being maintained or updated.
Links may no longer function. If you have a similar request, please write a new post.
Hi
Why do I need to define a section in DATA class if I want to use properties which are defined in DATA classes,
You do not need to. It's just a best practice. Data classes are meant to be reused. For example, you can define a Data class named "Customer". You create the properties that define what a customer is in the class, and you want a section to allow users to enter the values for your customer. You create this section in the Customer data class.
What this allows you to do is that if you have two applications, Car app and Boat app, both these application defines a Page mode property of Customer, that references the Customer data class.
For each of these application, you need to collect the customer data. With the section now defined in the Data class, you just reuse it. If you did not define the section in the Data class, you will need to create a section in each application that you want to use.
Discussion
Question
Discussion
Question
Question
Question
Question
Question
Question
Discussion
Pega Collaboration Center has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.