-
ChatterFeed
-
0Best Answers
-
2Likes Received
-
0Likes Given
-
8Questions
-
10Replies
Visualforce Email Template - Number field has 1 decimal
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?
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">
-
- Sandra O
- July 11, 2016
- Like
- 0
- Continue reading or reply
Alignment of text in visual force page
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?
collapsed:

not collapsed:
<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:
not collapsed:
-
- Sandra O
- June 01, 2016
- Like
- 0
- Continue reading or reply
Enhanced List VisualForce Page
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>
-
- Sandra O
- September 04, 2015
- Like
- 1
- Continue reading or reply
Combine 2 Opportunity Triggers
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:
2nd one:
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; }
-
- Sandra O
- March 20, 2015
- Like
- 0
- Continue reading or reply
Passing values to a VF Page via a Custom URL
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:
Here is my VF Page:
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>
-
- Sandra O
- January 16, 2015
- Like
- 0
- Continue reading or reply
Help with trigger - only updates after edit/save
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:
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++; } }
-
- Sandra O
- January 10, 2015
- Like
- 0
- Continue reading or reply
Unexpected Token: Illegal for Change of Ownership button
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();
{!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();
-
- Sandra O
- November 21, 2014
- Like
- 1
- Continue reading or reply
Social Media App Issue - Getting Error Msg when Granting Access
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?
-
- Sandra O
- July 06, 2011
- Like
- 0
- Continue reading or reply
Enhanced List VisualForce Page
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>
-
- Sandra O
- September 04, 2015
- Like
- 1
- Continue reading or reply
Unexpected Token: Illegal for Change of Ownership button
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();
{!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();
-
- Sandra O
- November 21, 2014
- Like
- 1
- Continue reading or reply
Visualforce Email Template - Number field has 1 decimal
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?
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">
- Sandra O
- July 11, 2016
- Like
- 0
- Continue reading or reply
Combine 2 Opportunity Triggers
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:
2nd one:
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; }
- Sandra O
- March 20, 2015
- Like
- 0
- Continue reading or reply
Passing values to a VF Page via a Custom URL
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:
Here is my VF Page:
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>
- Sandra O
- January 16, 2015
- Like
- 0
- Continue reading or reply
Help with trigger - only updates after edit/save
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:
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++; } }
- Sandra O
- January 10, 2015
- Like
- 0
- Continue reading or reply
Unexpected Token: Illegal for Change of Ownership button
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();
{!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();
- Sandra O
- November 21, 2014
- Like
- 1
- Continue reading or reply
I get an error message when trying to grant access to the Legend Heart fan page on FB.
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
- Suzette West
- May 30, 2011
- Like
- 0
- Continue reading or reply