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?
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)
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.
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.