• Ricky Theda
  • NEWBIE
  • 25 Points
  • Member since 2015
  • Saasten

  • Chatter
    Feed
  • 1
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 9
    Replies
I'm importing a database integer value into an apex page. 
In one place, I would like to replace the value with text (if value = 1 text=Bad, else if value = 2 text = blah, etc.).
In a different place, I'd like to color code backgrounds based on the value (If value =1 background = red, else if value = 2 background = yellow, etc.)

I know I can figure out a workaround for the first example, but since the second one needs something programmatic.  Is there a way to put an if statement (or case statement or other conditional statement) in the apex tag?
Hi,
I have one custom object named EmplyeeTopicRating__c is on detail side of contact standard object.Based on the name of contact i want to fetch list of records from EmplyeeTopicRating__c. so i have written custom controller for it.It didnt give me any error but it doesnt fetches values on EmplyeeTopicRating__c object.so please give me solution.
**************my controller***********************************
public class contactextention 
{

    public contact cont{get;set;}
    public PageReference save() 
    {    update cont;
        return null;
    }


    public contactextention() {
    String acctId = ApexPages.currentPage().getParameters().get('id');
     cont = [Select Name From contact Where Id = :acctId];
   }
 
    public list<EmplyeeTopicRating__c> ratings1
    { get {
           ratings1 =[select Employee_name__c,Employee_name__r.ContactRole__r.Name,TopicPriorityRecord__r.Priority__c,quarter__c,Ratings__c,Year__c,
                TopicPriorityRecord__r.Topic_Name__r.Group_Name__r.Name,TopicPriorityRecord__r.Topic_Name__r.Name from EmplyeeTopicRating__c where Employee_name__c=:cont.name];
          return ratings1;
         }
        set;
        }
    public String getGreeting() 
    {
        return 'Hello ' + cont.name + ' (' + cont.id + ')';
    }
    
}
*******************VF page***********************
<apex:page controller="contactextention">
{!Greeting}
    <apex:form >
        
        <Apex:pageBlock >
        <apex:pageblockButtons >
             <apex:commandButton action="{!save}" value="save" />
        </apex:pageblockButtons>
        <apex:pageBlockSection >
        <apex:pageBlockTable value="{!ratings1}" var="etr">
                  
                  <apex:column headerValue="Year">
                  <apex:inputField value="{!etr.Year__c}"/>
                  </apex:column>
                  <apex:column headerValue="Quarter">
                  <apex:outputField value="{!etr.quarter__c}"/>
                  </apex:column>
                  <apex:column headerValue="Role name">
                  <apex:outputField value="{!etr.TopicPriorityRecord__r.Role__r.Name}"/>
                  </apex:column>
                  <apex:column headerValue="Priority no">
                  <apex:outputField value="{!etr.TopicPriorityRecord__r.Priority__c}"/>
                  </apex:column>
                  <apex:column headerValue="Ratings">
                  <apex:inputField value="{!etr.Ratings__c}"/>
                  </apex:column>
                  <apex:column headerValue="Topic Name">
                  <apex:outputField value="{!etr.TopicPriorityRecord__r.Topic_Name__r.Name}"/>
                  </apex:column>
        </Apex:pageblockTable>
        </apex:pageBlockSection>
        </Apex:pageBlock>
    </apex:form>
</apex:page>

please show whats wrong in the code
Can u help me in ISCHANGE functionality. When ISCHANGE function is used at what situatio this function is used.please help me out
I'm importing a database integer value into an apex page. 
In one place, I would like to replace the value with text (if value = 1 text=Bad, else if value = 2 text = blah, etc.).
In a different place, I'd like to color code backgrounds based on the value (If value =1 background = red, else if value = 2 background = yellow, etc.)

I know I can figure out a workaround for the first example, but since the second one needs something programmatic.  Is there a way to put an if statement (or case statement or other conditional statement) in the apex tag?
Hi Guys,
Can you please help me out with this Trigger?
Whenever any record is created or edited on kugo2p__SalesOrder__c then it should copy kugo2p__BillingFrequency__c field value to other Custom Object I have kugo2p__SalesOrderServiceLine__c and the field name is Billing_Frequency__c. kugo2p__SalesOrderServiceLine__c is the Child of kugo2p__SalesOrder__c. 
Also this Trigger should only update field when on kugo2p__SalesOrder__c we have Order_Form_Type__c = New Order OR Upsell – Independent OR Upsell – Coterminous OR Organic Growth OR Credit OR Renewal OR Renewal – Entitlement Reconciliation OR New – Entitlement Reconciliation OR Upsell – Entitlement Reconciliation
  • July 30, 2015
  • Like
  • 0

I have had the audit fields (created by, created dates, last modified by, etc) opened by sfdc, and need to see if there is a way to populate these via an update rather than an insert. Through the data loader, they are only available via insert. Is this a data loader limitation or a salesforce limitation? We also have DB Amp, and do not have access on an update either. Anyway around this?