• James Hayes
  • NEWBIE
  • 40 Points
  • Member since 2016

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 6
    Questions
  • 5
    Replies
I have used this formula, it gave me a field with a red or green flag.  I would like a banner displayed across the top of the account. 

IF( ISPICKVAL( Type, "Client"), 

IMAGE("/img/samples/flag_red.gif","Customer Account"), 

IMAGE ( "/img/samples/flag_green.gif","Prospect Account"))

Can I get some help?  Appreciate it. 
Hey All, 

I am trying to get a visualforce page to reference the "My Opportunities" view in salesforce.  I am doing a list view on the left and a page view of the opportunity on the right.  But, I only want it to view the opportunities that are associated to the owner opening the visualforce page. 

The left, list of opportunities should only be those belonging to the logged in user

Here is my current code.





<apex:page standardController="Opportunity" recordSetVar="ops" sidebar="false">
<apex:form >
    <apex:pageBlock >
    <apex:pageBlockSection >
    <apex:pageBlock Title="List of Opportunities">
        <apex:pageblockTable value="{!ops}" var="o">
            <apex:column >
                <apex:commandLink value="{!o.Name}" reRender="refresharea">
                    <apex:param name="OpportunityID" value="{!o.ID}"/>
                    <apex:param name="OpportunityName"  value="{!o.Name}" />
                    </apex:commandLink>             
            </apex:column>
            <apex:column value="{!o.Amount}"/>
            <apex:inlineEditSupport />
            <apex:column value="{!o.StageName}"/>
            <apex:column value="{!o.Closedate}"/>

        </apex:pageBlockTable>
    </apex:PageBlock>
    
    <apex:pageBlock title="{!$CurrentPage.parameters.OpportunityName}" id="refresharea">
        <apex:detail subject="{!$CurrentPage.parameters.opportunityID}" relatedList="false"/>
    </apex:pageBlock>
    </apex:pageBlockSection>
    </apex:pageBlock>
</apex:form>
</apex:page>


Any help would be appreciated.  I am fairly new at this.  Thanks