• forceone
  • NEWBIE
  • 0 Points
  • Member since 2010

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 4
    Replies
Hi:
I would like to display status color on custom VF page. I defined a color field as a formula text. 
The color field displays right color in standard object screen. It does not work when I tried to use the same field in Visualforce.
 The code is given below
<apex:page standardController="Project__c" recordSetVar="projects">
<apex:pageBlock >    
<apex:form id="theForm">         
<apex:pageBlockTable value="{!projects}" var="prj">
             <apex:column value="{!prj.name}"/>
            <apex:column headerValue="Scope">
             <apex:outputField value="{!prj.Scope_Color__c}"/> 
           </apex:column>            
</apex:pageBlockTable>
     </apex:form>
</apex:pageBlock>
</apex:page>
The display shows the value <img src="/img/samples/color_yellow.gif" alt="Yellow" height="10" width="10" border="0"/>
instead of the yellow color.
I appreciate any help.

Hi:
I would like to display status color on custom VF page. I defined a color field as a formula text. The color field displays right color in standard object screen. It does not work when I tried to use the same field in Visualforce. The code is given below
<apex:page standardController="Project__c" recordSetVar="projects">

<apex:pageBlock >  

 <apex:form id="theForm">         

<apex:pageBlockTable value="{!projects}" var="prj">            

<apex:column value="{!prj.name}"/>            

<apex:column headerValue="Scope">            

<apex:outputField value="{!prj.Scope_Color__c}"/>           

</apex:column>            

</apex:pageBlockTable>    

</apex:form>

</apex:pageBlock>

</apex:page>


The display shows the value <img src="/img/samples/color_yellow.gif" alt="Yellow" height="10" width="10" border="0"/>instead of the yellow color.
I appreciate any help.

Hi: I would like to display status color on custom VF page. I defined a color field as a formula text. The color field displays right color in standard object screen. It does not work when I tried to use the same field in Visualforce. The code is given below The display shows the value Yellow instead of the yellow color. I appreciate any help.
Hi:
I would like to display status color on custom VF page. I defined a color field as a formula text. 
The color field displays right color in standard object screen. It does not work when I tried to use the same field in Visualforce.
 The code is given below
<apex:page standardController="Project__c" recordSetVar="projects">
<apex:pageBlock >    
<apex:form id="theForm">         
<apex:pageBlockTable value="{!projects}" var="prj">
             <apex:column value="{!prj.name}"/>
            <apex:column headerValue="Scope">
             <apex:outputField value="{!prj.Scope_Color__c}"/> 
           </apex:column>            
</apex:pageBlockTable>
     </apex:form>
</apex:pageBlock>
</apex:page>
The display shows the value <img src="/img/samples/color_yellow.gif" alt="Yellow" height="10" width="10" border="0"/>
instead of the yellow color.
I appreciate any help.

Hi:
I would like to display status color on custom VF page. I defined a color field as a formula text. The color field displays right color in standard object screen. It does not work when I tried to use the same field in Visualforce. The code is given below
<apex:page standardController="Project__c" recordSetVar="projects">

<apex:pageBlock >  

 <apex:form id="theForm">         

<apex:pageBlockTable value="{!projects}" var="prj">            

<apex:column value="{!prj.name}"/>            

<apex:column headerValue="Scope">            

<apex:outputField value="{!prj.Scope_Color__c}"/>           

</apex:column>            

</apex:pageBlockTable>    

</apex:form>

</apex:pageBlock>

</apex:page>


The display shows the value <img src="/img/samples/color_yellow.gif" alt="Yellow" height="10" width="10" border="0"/>instead of the yellow color.
I appreciate any help.

HI,

I have been asked to build a formula field that gives and image (Traffic Light) that shows the lowest rating from 3 separate pick lists, Account Management Status, BDM Status and Partner Status, all have RED, GREEN & YELLOW as pick list values. So is 2 out of 3 are green but one us Yellow then my Image field would show YELLOW or the lowest rating of the 3 Picklists.

Thank you

  • September 17, 2010
  • Like
  • 0

Hi there,

 

I have a custom object called Flight_Cost. That object is linked to Opportunity object with master details relationship. On the Flight_Cost, I have a formula field call cost (currency).  I am trying to create a roll up summary of the cost field but that field is not available when the SUM option is selected. Am I doing something wrong?

 

I had Advanced Currency Management feature turned up. It doesn't work when I turned the feature off as well.

 

Please advise.

 

Thanks 

  • March 22, 2010
  • Like
  • 0

I'm having some issues trying to get Static Resources to work.

 

I am trying to work with extjs.  I have uploaded a zip file (extsfdc.zip) to static resources and named the static resource extsfdc.  Cache control is set to public.

 

Here is the code I am using:

 

VF PAGE CODE:

 

<apex:page standardController="account"> <apex:form id="theForm"> <apex:pageBlock title="New Account" mode="edit"> <apex:pageBlockButtons > <apex:commandButton value="Save" action="{!save}"/> </apex:pageBlockButtons> <apex:pageBlockSection columns="1"> <apex:inputField value="{!account.name}"/> <apex:pageBlockSectionItem > <apex:outputLabel value="Number of Employees"> <apex:outputPanel > <c:inputSlider></c:inputSlider> </apex:outputPanel> </apex:outputLabel> </apex:pageBlockSectionItem> </apex:pageBlockSection> </apex:pageBlock> </apex:form> </apex:page>

 

 

 

 

 

COMPONENT CODE:

 

<apex:component > <apex:attribute name="min" type="integer" description="Minimum Value"/> <apex:attribute name="max" type="integer" description="Maximum Value"/> <apex:attribute name="value" type="string" description="The value attribute"/> <apex:stylesheet value="{!URLFOR($Resource.extsfdc, 'resources/css/xtheme-gray.css')}"/> <apex:stylesheet value="{!URLFOR($Resource.extsfdc, 'resources/css/ext-all.css')}"/> <apex:includescript value="{!URLFOR($Resource.extsfdc, 'adapter/ext/extbase.js')}"/> <apex:includescript value="{!URLFOR($Resource.extsfdc, 'ext-all.js')}"/> <div id="basic-slider"></div> <apex:inputText value="{!value}" id="noe"/> <script> Ext.onReady(function(){ var slider = new Ext.Slider({ renderTo: 'basic-slider', width: 214, minValue: {!min}, maxValue: {!max} }); slider.on('change', function(slider,value){ document.getElementByID('{!$Component.noe}').value = value;}); }); </script> </apex:component>

 

 

Both compile without errors and the page renders but the slider does not display.

 

Any help would be appreciated.

 

 

Thanks!

  • November 27, 2009
  • Like
  • 0