function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Neha@SfdcNeha@Sfdc 

creating tabs dynamically

my requirement is,when a list contains suppose to records,then 2 tabs should be created and if n records then n tabs should be created.....how do i achieve this?
AmitAmit (Salesforce Developers) 
You can use Jquery tabs for this. http://jqueryui.com/tabs/

You can collect all the records in a list by SOQL query and then using repeat tag you can use jquery tabs to display then as tabs.
PrasanntaPrasannta (Salesforce Developers) 
Hi,

Please use the apex repeat tag to loop the values no. of records return from the list. And include
'<apex:tab>' inside the apex repeat tag to dynamically generate the tabs according to the no of records return from the list.

Hope this information helps.