Skip to main content

Visualforce Reference: URLFOR Reference, Confirmations, Labels, and Access

Another Post for referencing urlfor and other describe mechanisms within visualforce

urlfor:
{!URLFOR($SControl.MySControlName)}
  {!URLFOR($Resource.CorpZip)}
{!URLFOR($Resource.CorpZip, 'images/logo.gif')}
{!URLFOR($Action.Account.New)}
{!URLFOR($Action.Account.view, account.id)}
{!URLFOR($Action.Account.Edit, account.id)}
{!URLFOR($Action.Account.delete, account.id)}
{!URLFOR($Action.Account.Tab, $ObjectType.Account)}


onclick="return window.confirm('Are you sure?');"

Labels and Names
{!$ObjectType.Opportunity.label}
{!$ObjectType.Opportunity.fields.stagename.label}
{!$ObjectType.Opportunity.name}
{!$ObjectType.Opportunity.fields.stagename.name}


Object Access
{!$ObjectType.Account.Accessible}" Updateable, Deletable, Createable

Spinner

<apex:actionStatus id="status" >
 <apex:facet name="start"><apex:image value="{!URLFOR($Resource.blackbox, 'images/spinner-black-small.gif')}" style="padding:2px 4px;vertical-align: middle;margin"/></apex:facet>
</apex:actionStatus>

Comments

Popular posts from this blog

Override Name in the Salesforce Cloud Console

Service Cloud Console HyperLink Opens new window outside of the console, Opens new tab inside the console. HYPERLINK("javascript:if(typeof(srcUp)=='function') {srcUp('/" & Id & "?isdtp=vw');}"+ " else {window.location.href='/" & Id & "'}", User__r.FirstName + ' ' + User__r.LastName, "_self" ) Checks if the srcUp exists and if it does, you're in the console.