+ Start a Discussion

More than ten columns in related list

I have a VF page for a custom object, using standard controller.  I have a related list of another custom object.  The related list should contain a name, year, and twelve checkboxes for each month.  How can I override the related list layout from the standard page layout to include more than ten columns?


You can't show more than ten fields in standart related list. It is a limit in salesforce.

And you have create a VF page with standard controller. You can use an extension with standard controller.

In extension class you can get the id of main record by parameter.

And After getting the id of record you can query on child object where parnet id which you have gotten.

Fetch all the child object record in a list and then show on page by pageblock table.

IF it helps you than please mark it as a solution and ENJOY APEX