• Sandra O
  • NEWBIE
  • 10 Points
  • Member since 2011

  • Chatter
    Feed
  • 0
    Best Answers
  • 2
    Likes Received
  • 0
    Likes Given
  • 8
    Questions
  • 10
    Replies
I have a visualforce page that displays a number field with a decimal. The actual field does not have any decimals.

How can I adjust the line belwo to dsiplay field Relatedto.Compliants_in_x_days__c with no decimals?
<messaging:emailTemplate subject="{!relatedTo.Complaints_In_X_Days__c}" Complaints or System Failures in the last {!$Label.number_of_days} days for {!relatedTo.Name}" recipientType="User" relatedToType="Account">

 
I have the following code, but when side bar collapsed - text aligns to the center.  When side bar extended - alignment is thrown off. Can someone help?
 
<apex:page standardController="Account" >

<apex:outputPanel style="font-size: 38px;background-color:yellow;width:100%;padding:550px;" rendered="{!account.Current_Engagement_Level__c =='At-Watch'}">At-Watch</apex:outputPanel>
    
<apex:outputPanel style="font-size: 38px;background-color:green;width:100%;padding:550px;" rendered="{!account.Current_Engagement_Level__c =='Engaged'}">Engaged</apex:outputPanel>

<apex:outputPanel style="font-size: 38px;background-color:red;width:100%;padding:550px;" rendered="{!account.Current_Engagement_Level__c =='At-Risk'}">At-Risk</apex:outputPanel>

</apex:page>

collapsed:
User-added image

not collapsed:
User-added image
Need help with my VF page.  I am trying to display only the list view with no header, no buttons, no sidebar and not actions.  Anyone know how?
 
<apex:page sidebar="false" >
  
   <apex:enhancedlist type="Location__c" height="730" customizable="false" rowsPerPage="50" Listid="00B19000000S8a3"  />
  
</apex:page>

 
Hello,

I'd appreciate help in combining these 2 triggers - I need to keep the functionality of both intact.  Thank you in advance!!

1st one:
trigger linkGoLiveDate on Opportunity (after insert, after update) {

    Set<ID> myAccountIds = new Set<ID>();
    Map<ID, Date> myMap = new Map<ID, Date>();
    
    for (Opportunity o : Trigger.new) {
        if (o.go_live_date__c != null && o.accountid != null) {
            myAccountIds.add(o.accountid);
            myMap.put(o.accountid, o.go_live_date__c);
        }   
    }
    
    if (myAccountIds.size() > 0) {
        List<Account> myAccounts = new List<Account>();
        for (Account a : [select id from account where Service_Start_Date__c = NULL AND id in :myAccountIds]) {
            a.service_start_date__c = myMap.get(a.id);
            myAccounts.add(a);
        }
        
     update myAccounts;
    }

}

2nd one:
trigger updateAccountOwner on opportunity (after insert, after update){
    list<Id> accIds = new list<Id>();
    list<Account> accounts = new list<account>();
    for(opportunity o:trigger.new){
        accIds.add(o.accountId);
    }
    for(account a:[select Id, ownerid from account where Id IN :accIds]){
        for(opportunity opp:trigger.new){
            if(opp.StageName == 'Live'){
                a.ownerid=opp.client_service_rep__c;
                accounts.add(a);
            }
        }
    }
    update accounts;
}

 
Hello-

I know you can normally use a controller to do this - but I want to pass values from my custom button to my VF page.  AS of right now - I am unable to get the Priority field to show "High."

Any help?

Here is my custom button:
/apex/EscalateIncident?&id={!Incidents__c.Id}&00Nn0000000Pp0u=High&retURL=%2F{!Incidents__c.Id}



Here is my VF Page:
<apex:page standardController="Incidents__c">
    <apex:form >
        <apex:pageBlock title="Escalation Notes: {!Incidents__c.Name}">
            <apex:pageBlockSection title="Escalation Notes" columns="1">
                <apex:inputField value="{!Incidents__c.Escalation_Notes__c}"/>
                <apex:outputField value="{!Incidents__c.Priority__c}"/>
                
            </apex:pageBlockSection>
            <apex:pageBlockButtons >
                <apex:commandButton action="{!save}" value="Save"/>
                <apex:commandButton action="{!cancel}" value="Cancel"/>
            </apex:pageBlockButtons>
        </apex:pageBlock>
    </apex:form>
</apex:page>

 
I have a trigger on the Account - I am trying to trigger an upadte on the Account to do an update on related Integration Account records.  However, the update is only applied after I do an edit/save on indivudual Interation Account records.

this is what I have so far:
 
trigger UpdateIA on Account (after update) 
    {
        Integer index = 0;       
        for(Account acc : Trigger.New)
            {
                //Check entry criteria
                if(acc.Complexity__c != Trigger.Old[index].Complexity__c)                
                    {
                         
                         List<Integration_Account__c> listIA = [Select Complexity_roll_up__c from Integration_Account__c where Integration_Account__c.Account_ID__c =: acc.id];      
                
                           for(Integration_Account__c ia : listIA)
                      
                             {
                                 ia.Complexity_Roll_Up__c = acc.Complexity__c;
                             }
                         update listIA;    
                    }
                index++;
            }
    }

 
Hello - I am getting a Unekpected Token Illegal for my button to assign ownership to the person that clicks the button.

{!REQUIRESCRIPT("/soap/ajax/29.0/connection.js")} 

// identify the record 
var c = new sforce.SObject("Checklist__c"); 
c.id = "{!Checklist__c.Id}"; 

// make the field change 
c.Ownerid= {!$User.Id}; 


// save the change 
sforce.connection.update([c]); 

//refresh the page 
window.location.reload();

Our Marketing User Clone is having trouble "granting" access to a facebook page. She gets error: Expected a , and }

 

When I grant access, I am taken to the facebook authorization page and then able to validate the page.

 

Anybody know what the issue is? How to solve it?

Need help with my VF page.  I am trying to display only the list view with no header, no buttons, no sidebar and not actions.  Anyone know how?
 
<apex:page sidebar="false" >
  
   <apex:enhancedlist type="Location__c" height="730" customizable="false" rowsPerPage="50" Listid="00B19000000S8a3"  />
  
</apex:page>

 
Hello - I am getting a Unekpected Token Illegal for my button to assign ownership to the person that clicks the button.

{!REQUIRESCRIPT("/soap/ajax/29.0/connection.js")} 

// identify the record 
var c = new sforce.SObject("Checklist__c"); 
c.id = "{!Checklist__c.Id}"; 

// make the field change 
c.Ownerid= {!$User.Id}; 


// save the change 
sforce.connection.update([c]); 

//refresh the page 
window.location.reload();
I have a visualforce page that displays a number field with a decimal. The actual field does not have any decimals.

How can I adjust the line belwo to dsiplay field Relatedto.Compliants_in_x_days__c with no decimals?
<messaging:emailTemplate subject="{!relatedTo.Complaints_In_X_Days__c}" Complaints or System Failures in the last {!$Label.number_of_days} days for {!relatedTo.Name}" recipientType="User" relatedToType="Account">

 
Hello,

I'd appreciate help in combining these 2 triggers - I need to keep the functionality of both intact.  Thank you in advance!!

1st one:
trigger linkGoLiveDate on Opportunity (after insert, after update) {

    Set<ID> myAccountIds = new Set<ID>();
    Map<ID, Date> myMap = new Map<ID, Date>();
    
    for (Opportunity o : Trigger.new) {
        if (o.go_live_date__c != null && o.accountid != null) {
            myAccountIds.add(o.accountid);
            myMap.put(o.accountid, o.go_live_date__c);
        }   
    }
    
    if (myAccountIds.size() > 0) {
        List<Account> myAccounts = new List<Account>();
        for (Account a : [select id from account where Service_Start_Date__c = NULL AND id in :myAccountIds]) {
            a.service_start_date__c = myMap.get(a.id);
            myAccounts.add(a);
        }
        
     update myAccounts;
    }

}

2nd one:
trigger updateAccountOwner on opportunity (after insert, after update){
    list<Id> accIds = new list<Id>();
    list<Account> accounts = new list<account>();
    for(opportunity o:trigger.new){
        accIds.add(o.accountId);
    }
    for(account a:[select Id, ownerid from account where Id IN :accIds]){
        for(opportunity opp:trigger.new){
            if(opp.StageName == 'Live'){
                a.ownerid=opp.client_service_rep__c;
                accounts.add(a);
            }
        }
    }
    update accounts;
}

 
Hello-

I know you can normally use a controller to do this - but I want to pass values from my custom button to my VF page.  AS of right now - I am unable to get the Priority field to show "High."

Any help?

Here is my custom button:
/apex/EscalateIncident?&id={!Incidents__c.Id}&00Nn0000000Pp0u=High&retURL=%2F{!Incidents__c.Id}



Here is my VF Page:
<apex:page standardController="Incidents__c">
    <apex:form >
        <apex:pageBlock title="Escalation Notes: {!Incidents__c.Name}">
            <apex:pageBlockSection title="Escalation Notes" columns="1">
                <apex:inputField value="{!Incidents__c.Escalation_Notes__c}"/>
                <apex:outputField value="{!Incidents__c.Priority__c}"/>
                
            </apex:pageBlockSection>
            <apex:pageBlockButtons >
                <apex:commandButton action="{!save}" value="Save"/>
                <apex:commandButton action="{!cancel}" value="Cancel"/>
            </apex:pageBlockButtons>
        </apex:pageBlock>
    </apex:form>
</apex:page>

 
I have a trigger on the Account - I am trying to trigger an upadte on the Account to do an update on related Integration Account records.  However, the update is only applied after I do an edit/save on indivudual Interation Account records.

this is what I have so far:
 
trigger UpdateIA on Account (after update) 
    {
        Integer index = 0;       
        for(Account acc : Trigger.New)
            {
                //Check entry criteria
                if(acc.Complexity__c != Trigger.Old[index].Complexity__c)                
                    {
                         
                         List<Integration_Account__c> listIA = [Select Complexity_roll_up__c from Integration_Account__c where Integration_Account__c.Account_ID__c =: acc.id];      
                
                           for(Integration_Account__c ia : listIA)
                      
                             {
                                 ia.Complexity_Roll_Up__c = acc.Complexity__c;
                             }
                         update listIA;    
                    }
                index++;
            }
    }

 
Hello - I am getting a Unekpected Token Illegal for my button to assign ownership to the person that clicks the button.

{!REQUIRESCRIPT("/soap/ajax/29.0/connection.js")} 

// identify the record 
var c = new sforce.SObject("Checklist__c"); 
c.id = "{!Checklist__c.Id}"; 

// make the field change 
c.Ownerid= {!$User.Id}; 


// save the change 
sforce.connection.update([c]); 

//refresh the page 
window.location.reload();

 

I was able to link all other pages on FB that I have, but this one just won't validate for some reason. It goes into FB fine, but when I choose the Legend Heart profile it gives me the following error message:

 

Expected a , or } 

 

An unexpected error has occurred. Your solution provider has been notified. (sf4twitter)

 

Thanks,

 

Suzette West