You need to sign in to do that
Don't have an account?

How to display records of account object as tabs in VF
Hi All
i'm new to salesforce . I have been asked to display the records of the Account Object as multiple tabs along with their related lists in a VF layout .
Can anyone please help me out with the code
Thanks in Advance
Hi,
Please try the below code. This will display the complete Account details with the related lists. You can modify as its is required.
Please mark it solved, if it answers your question.
Thanks,
Aravind.
All Answers
Hi,
Please try the below code, this is just for your understanding on how to display the details in tab. You can enhance it based on your requirement.
Thanks Aravind ,
I have tried this code .. It works to some extent . The Component.Apex.outputText works fine . What i need is to get related list of those account records . So I tried using this code . I got this output
Now when I add Component.Apex.Detail its showing error as insufficient privilege
Please help !
Controller
VF page
Thanks in Advance
Aj
Hi,
In my example code i have provided the related list as false, you can have it true and check once. Also your requirement is to show the Account details in tab or the related lists in tab, i.e, if you have account 1,2,3 should you display the accounts as tabs or on clicking the Account 1, the related lists Contacts, Opportunities should be displayed in tab. If this is your requirement, please check if this helps http://wiki.developerforce.com/page/Tabbed_Accounts_in_30_seconds
Thanks,
Aravind
Thanks Aravind
My requirement is to display the account as tabs . For Eg : if i have 3 accounts say A,B,C
I must get Account A as a separate tab and its corresponding details and its related list under the same tab
and Account B as a separate tab and so on ...
In my code i'm able to get that account as tabs but i'm not able to get the detail component inside the tab dynamically
Thanks in Advance
Hi,
Please try the below code. This will display the complete Account details with the related lists. You can modify as its is required.
Please mark it solved, if it answers your question.
Thanks,
Aravind.
WOW ! Works Perfect !
Thanks a lot for your help !!!
May I know what was the error in my code ..
If i'm rite i think i have given that detail subject like 'o.Id' instead of o.Id and dint add that String tabbedview .
Thank you once again for the effort u took to solve this :) :)