Expose child page of a work class

How to expose child page of a work class?

E.g a work class My-Work, in which a property Student is defined of type single page pointing to My-Data-Student, which has properties Name, Number, etc…

Now I want to use Student.Name, Student.Number as filter to run report def or obj-browse on My-Work case, do I need need only expose Student to class My-Work, or more?

Thanks.

@MaxonL16591286

Are you trying to run the report on work class with filters from Student embedded page?

@MaxonL16591286

Obj-Browse is not recommended.

Optimize the properties that you’re interested to expose in your work table and use Report defintion.

Go to App Explorer → Case Type class or Work Layer → Data Model → Property → Expand Student Data Class → Right click on Name → Select OPtimize (do the same step for Student.Number)

I hope this helps!

@RameshSangili

do I need optimize property Student (type single page) itself?

@MaxonL16591286

Optimize the necessary properties inside Student(Single Page). For example, if you have 5 properties under Student(Name, Number ,Phone ,Email, City) however you need only Name and Number for reporting requirements then optimize Name and Number.

Hi @MaxonL16591286,

To use Student.Name and Student.Number as filters, you need to expose both properties individually in the My-Work class database table. After exposure, you can use these properties for filtering in report definitions and Obj-Browse operations.

Pega doesn’t expose page-type properties directly to the database. You can only expose individual properties on that page.

Thanks,

Mohd Qizer Uddin