You need to sign in to do that
Don't have an account?
kjpeterson
PageBlock tabStyle doesn't show icon
I'm trying to get a pageblock to show like a standard related list with the icon for the object the pageblock will display. If I set the tabStyle attribute of the pageBlock to the object it changes the border colors but does not display the icon. How can I display the object icon too?
You can do this using the header facet of the page block.
Something like the following worked for me.
This is exactly what I need to do, but what do I put in for the image url? I want it to be the icon I chose for my custom Invoice object that this pageBlock is referencing.
I've tried the following but nothing shows up. This is the url that shows up in FireBug for the standard related list.
The best place I've found for re-using images is this one:
http://free-121d5f44d20-121d603d1c5-121ee2b8103.force.com/force2b/salesforceicons
You can just inspect a particular image to get the relative URL and use that yourself.
Ideally I would like to specify tabSytle="Invoice__c" and have the icon from that object show up. Any ideas?
So I found an invoices24.png icon on that page that I switched to. But that isn't available as a tab icon! It is too bad that it isn't the same list of icons available in both places.
I also had to add some styling to get the spacing right. Here is what I ended up with:
Final complete solution:
I hope that you can also use:
On Visualforce page, simply use this code. Change title and subtitle that you want to display and it will show you Standard/Custom object tab icon that you have selected.
-Saw