Best Practice To Create Sections In Data or Work Class?

Hi All,

When to create section in Data class? And When to create section in Work Class?

If we create section in Data Class how we can use that section in Work class?

Thanks,

@AbhishekC1725

Create sections in the data class for Abstract and Concrete data types - This helps to achieve better reusability.

You can embed the sections defined in the data class to work Class section rules as required.

@AbhishekC1725 please check this

https://support.pega.com/question/best-practice-create-sections

Hi @AbhishekC1725,

When to create a section in Work Class

If the section represents data elements common to multiple work objects, defining it in the data class ensures consistency and reusability. This is ideal for sections containing customer information, product details, or any data shared across various processes

When to create a section in the Data class

Sections in Work classes are used to define the user interface and behaviour of the case. You create sections in Work classes to design the presentation and interaction for the user while working on a case. These sections often include fields, buttons, and other UI elements specific to the business process.

Using a Data Class Section in a Work Class:

To utilize a section defined in the data class within a work class:

Create a Page Property: In the work class, configure a page property of type “Data Page” referencing the data class containing the section you want to embed.

Embed the Section: Create a new section in the work class and choose “Embedded Section” as the section type.

Thanks,

Mohd Qizer Uddin

@RameshSangili Thanks for response :blush:

@Anoop Krishna Thanks for response :blush:

@Mohd Qizer Uddin Thanks for response :blush: