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
Sachin10Sachin10 

Access standard Case Icon in Visualforce page

Hi,

Salesforce has a standard Icon for Case(Briefcase symbol). How will I access it in my Visualforce page?

 

I tried to inspect the Case Icon element and ended up with this:

<img src="/s.gif" alt="Case" class="pageTitleIcon" title="Case">

But when I use this I get different Icon not the briefcase which I want.

 

NOTE: I want to use the standard salesforce URL to access the Icon and don't want to store in Static Resources.

 

Any help or pointers in this regards are highlu appreciated.

Many Thanks :)

Best Answer chosen by Admin (Salesforce Developers) 
Raja236Raja236

Try to use tabStyle in Apex page

 

Thanks and Regards

Raja

All Answers

hitesh90hitesh90

Hi,

 

Try to use <apex:sectionHeader> tag in your visualforce page.

 

<apex:sectionHeader title="New Case" subtitle="{!Case.CaseNumber}"/>

 

Important :
Hit Kudos if this provides you with useful information and if this is what you where looking for then please mark it as a solution for other benefits.

Thank You,
Hitesh Patel
SFDC Certified Developer & Administrator & Advanced Administrator & Sales cloud consultant
My Blog:- http://mrjavascript.blogspot.in/

Sachin10Sachin10

@

Thanks for your reply.

But that didn't work. It is showing a home Icon not the brief case Icon.

 

And I want the URL of the standard Salesforce BriefCase Icon so that I can use it in my Image tag.

 

hitesh90hitesh90

Hi,

 

Have you used standardController="case" attribute In your <apex:page> tag.

see below example.

 

visualforce page:

 

<apex:page standardController="case">
     <apex:sectionHeader title="New Case"/>
</apex:page>

 

 

Important :
Hit Kudos if this provides you with useful information and if this is what you where looking for then please mark it as a solution for other benefits.

Thank You,
Hitesh Patel
SFDC Certified Developer & Administrator & Advanced Administrator & Sales cloud consultant
My Blog:- http://mrjavascript.blogspot.in/

Sachin10Sachin10

@

Thanks for your reply.

It works when I put standardcontroller ="Case".

 

But what I want in My scenario is different.I want to embed URL of the standard salesforce briefcase Icon.

In my case standard controller is Asset. So Asset Icon is getting displayed when I use

<img src="/s.gif" alt="Case" class="pageTitleIcon" title="Case">

but i want a Case Icon

 

 

I'm not sure if we can even get the URL of those Icons.

I wanted to check if any standard way is there to access the Images before using Static Resources.

Thank You!

Raja236Raja236

Try to use tabStyle in Apex page

 

Thanks and Regards

Raja

This was selected as the best answer
Sachin10Sachin10

@Raja It worked..

Many Thanks :)

Eric ClayEric Clay
Even though it is not listed on every's favorite icon page you can do "/img/icon/cases16.png" and flip the 16 out with 24 and 32. I'm not sure how long that has worked but I was working the same issue and found it.