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
Mike Lee 12Mike Lee 12 

Displaying select fields in tabpanel - using fieldsets?

Hello, I've just started looking into VF tab panels and wanted to find out if it's possible to show select fields within a tab? For example, I have an object with over 200 fields in it and I want to display 50 per tab. I was thinking of using something like fieldsets to group these fields together. Does anyone know if this is possible?

Thanks,

Mike
Best Answer chosen by Mike Lee 12
bob_buzzardbob_buzzard
That's absolutely possible. Tabs allow you to have content that is hidden unless you have chosen the specific tabs, while field sets allow you to dynamically output fields on a page without knowing about them until compile time.  There's an example in the VF developer's guide that shows how easy it is to iterate a fieldset:

https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_dynamic_vf_field_sets.htm

All Answers

bob_buzzardbob_buzzard
That's absolutely possible. Tabs allow you to have content that is hidden unless you have chosen the specific tabs, while field sets allow you to dynamically output fields on a page without knowing about them until compile time.  There's an example in the VF developer's guide that shows how easy it is to iterate a fieldset:

https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_dynamic_vf_field_sets.htm
This was selected as the best answer
Mike Lee 12Mike Lee 12
Thanks for info info! Great to know what I'm looking for is indeed possible.

Mike