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>
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
Post a Comment