• sumanth
  • NEWBIE
  • 0 Points
  • Member since 2010

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies

We have a date field that calculates the 90 day support expiration date and were hoping to have the date displayed in color, IE:

if product was purchased within 90 days

if product was purchased > 90 days ago

 

<apex:column >
<apex:facet name="header">
<B>90 Day Exp Date</B>
</apex:facet>
<apex:outputField value="{!ourORG.customPRODUCT.X90_Day_Date__c}"/>
</apex:column>

 

I've been trying to research putting the logic/color into the 'outputField' line of our VF page...  Alternatively, I  looked into a custom formula field to compare the dates between DOP and Today's date to check for the 90 day logic and display a different image to indicate warranty status.

 

Which is possible in VF, or am I going about this all wrong?  :smileyhappy:

 

 

We have also considered a 3rd color to indicate that the product has a purchased support agreement (IE: value exists in another field)... But, we'd be happy just to get going with the simpler version above as a launch pad.

 

Many thanks in advance..