+ Start a Discussion

Question about building vf page tabbed and each tab is a custom object

Just checking if this can be done. I have 6 custom objects and I want to create a page that has a tab for each of these objects. They are not related to each other they are all stand alone objects. I just need to group them all on one page so that an administrator can edit the data in one place.


Is this doable?  any code snippet to get me going?  the only code I find is the code for the Account sample: http://wiki.developerforce.com/page/Tabbed_Accounts_in_30_seconds


can this code be modified to point to unrelated objects and not based on a standard object?


Yes. This should be possible. If you look at the documentation of apex:tabPanel



it does not restrict contents of apex:tab to be a related list

<apex:tab label="One" name="name1" id="tabOne">content for tab one</apex:tab>


Within apex:tab you can add contents to display fields of a specific object. It is not clear from your question, how will we get ids of the six different objects that we want to display in these six tabs.