+ Start a Discussion
amitashtekaramitashtekar 

Standard Set Controller for parent to child query

I am creating a parent record and attaching images to it.

 

On the same page I am showing the parent record with the number of images attached to it.

 

When I set page size of standard set controller as 5 then for first record it shows me count of attachments as 4 even though it is more than that.

 

But when I set page size as 10, it shows me count 9.

 

This problem exists only when I have single record of parent object and disappears when I create one more record.

 

So does anyone know how the setpagesize() method of standard set controller works  for the child records.

 

Please help asap.

 

Thank you.