-
ChatterFeed
-
4Best Answers
-
0Likes Received
-
0Likes Given
-
26Questions
-
45Replies
Save error. Expression cannot be assigned
Hi, I am trying to create a trigger to start an approval process after insert if a certain field is checked - we are getting this save error: 'Expression cannot be assigned'
MDFSubmitForApproval on MDF__c (after insert) {
for (MDF__c a : trigger.new) {
if (MDF__c.Submitted__c = 'true') {
Approval.ProcessSubmitRequest app = new Approval.ProcessSubmitRequest();app.setObjectId(a.id);
Approval.ProcessResult result = Approval.process(app);
}
}
}
Not sure where we are going wrong with this? Any help much appreciated.
- RVJ
- September 01, 2011
- Like
- 0
- Continue reading or reply
Custom Table
Hi,
Please tell me how to create a custom table with 10 columns.
Thanks
Anu
- anuraj
- August 24, 2011
- Like
- 0
- Continue reading or reply
"dataTable" return empty data
Hello,
I have an problem. I try to use data table apex function in my page, but show me empty always. The controller return good data, but something happens in "apex:dataTable". This is my code:
<apex:page controller="exampleCon" cache="false">
<apex:dataTable value="{!contacts}" var="c" id="theTable" rowClasses="odd,even" styleClass="tableClass">
<apex:column><apex:facet name="header">Name</apex:facet>
<apex:outputText value="-{!c.Name}"/>
</apex:column>
<apex:column>
<apex:facet name="header">Phone</apex:facet>
<apex:outputText value="-{!c.Phone}"/>
</apex:column>
</apex:dataTable>
</apex:page>
And my controller:
public class exampleCon {
List<Contact> contacts;
public List<Contact> getcontacts() {
contacts = [select Name, Phone from Contact limit 10];
return contacts;
}
}
Thanks.
- conpas
- August 18, 2011
- Like
- 0
- Continue reading or reply
how and when to use the SOAP API classses...........
hiii.............
I am working on website integration with salesforce using SOAP API and converted the enterprise.wsdl file into enterprise.jar file which is having many classes..... How and where to use these classes I dont know can any one help me regarding that..........
Thanks in advance.........
- Daniel Thomson
- July 26, 2011
- Like
- 0
- Continue reading or reply
Test Run On Deploy
Hi All,
Can we use data in the development org when writing test classes.
Deployment is done using eclipse. will the deployment fail if if we depend on data on developer org ?
Thanks
- Ashan
- February 14, 2013
- Like
- 0
- Continue reading or reply
Estimate your organization's code coverage
Hi All,
Is the value of code coverage given by "Estimate your organization's code coverage" represents the complete code coverage of the org ? It seems that percentage shown is only for the classes which have at least more than 0% code coverage.
Thanks
- Ashan
- February 13, 2013
- Like
- 0
- Continue reading or reply
API Usage
Hi All
Is there a way to get the number of api requests for a given period, not for last 24 hours or last 7 days?
And what is meant by last 7 days in "API Calls Made Within Last 7 Days" standard report. ?
Is it 7 days behind current time or
7 days behind todays 12:00 am.
- Ashan
- January 09, 2013
- Like
- 0
- Continue reading or reply
Cast Iron Intregation
Hi All,
What can we achive by using cast iron for intregating salesforce.
Does it used to synchronize table in other systems with salesforce.
Or can it be used to communicate with apex web services ?
Thanks
- Ashan
- October 02, 2012
- Like
- 0
- Continue reading or reply
Force.com native connector
What does it meant by "Force.com native connector" ?
Is there a such connector for SAP systems?
- Ashan
- September 25, 2012
- Like
- 0
- Continue reading or reply
SAP Intregration
Hi All,
What is the best approach for intrgrating salesforce with SAP ?
Thanks
Amila
- Ashan
- September 25, 2012
- Like
- 0
- Continue reading or reply
Security Review-Saring
Hi,
When i run a security review for my app it marks classes using without sharing keyword as serious security risk.
Does this mean that we cant use without sharing classes ?
- Ashan
- August 10, 2012
- Like
- 0
- Continue reading or reply
- Ashan
- August 10, 2012
- Like
- 0
- Continue reading or reply
API usage
Hi All,
Does eclipse saves to the server counts as API usage in the salesforce org?
Thanks
- Ashan
- June 01, 2012
- Like
- 0
- Continue reading or reply
Dev 401 Certification
Hi All,
This is regarding the force.com dev 401 certification
Do we get questions related to Opportunity, Lead, Accounts, Cases (CRM objjects) for this exam
Thanks
- Ashan
- May 01, 2012
- Like
- 0
- Continue reading or reply
Element value must resolve to a String type!
Hi All,
Does any one has an idea on what this message means
- Ashan
- February 06, 2012
- Like
- 0
- Continue reading or reply
Maximum Number Of Classes
Hi,
Is there a limit for maximum number of classes in force.com
Thanks.
- Ashan
- January 04, 2012
- Like
- 0
- Continue reading or reply
Creating User From Apex Code
Hi All,
How can we make salesforce to send the user creation email to user when we create a user from apex code.
I could send the Reset Password mail using System.ReSetPassword method.
But when we used it Email says that
your password has been reset.
- Ashan
- November 22, 2011
- Like
- 0
- Continue reading or reply
Active Directory SSO
Hi,
If some one has an experience on Active Directory SSO for salesforce, please let me know the steps i should follow. I think i can use ADFS for that.
- Ashan
- November 06, 2011
- Like
- 0
- Continue reading or reply
Trigger on user object
Can we make a trigger to run at a user logout,login or session end. Does the user object gets updated in above events.
- Ashan
- October 24, 2011
- Like
- 0
- Continue reading or reply
Related Lists In Approval Request
Is it possible to show related lists for a object an a approval request view page ?
- Ashan
- September 29, 2011
- Like
- 0
- Continue reading or reply
Relationship of Custom Objects In a Mail Merge Template
I'm having two custom objects Employee and Company.
Employee has a company.
Company has address and email fields.
Can i get the Company.address and Company.email of a employee to a Mail Merge Template which is generated for a Employee ?
- Ashan
- September 26, 2011
- Like
- 0
- Continue reading or reply
Check Box Validation
Is there a way to validate my check box field , in order to keep only one of all objectes should have the field ticked?
- Ashan
- September 22, 2011
- Like
- 0
- Continue reading or reply
Getting content from within triggers is currently not supported.
When I try to call PageReference.getContent() from a trigger, I get the following error.
Getting content from within triggers is currently not supported.
Do anyone have a solution for this?
- Ashan
- September 21, 2011
- Like
- 0
- Continue reading or reply
Page Layout Assignment Through Meta Data Api
Is there a possibillity of assigning page layouts to record types through meta data api?
- Ashan
- September 15, 2011
- Like
- 0
- Continue reading or reply
Estimate your organization's code coverage
Hi All,
Is the value of code coverage given by "Estimate your organization's code coverage" represents the complete code coverage of the org ? It seems that percentage shown is only for the classes which have at least more than 0% code coverage.
Thanks
- Ashan
- February 13, 2013
- Like
- 0
- Continue reading or reply
Dev 401 Certification
Hi All,
This is regarding the force.com dev 401 certification
Do we get questions related to Opportunity, Lead, Accounts, Cases (CRM objjects) for this exam
Thanks
- Ashan
- May 01, 2012
- Like
- 0
- Continue reading or reply
Element value must resolve to a String type!
Hi All,
Does any one has an idea on what this message means
- Ashan
- February 06, 2012
- Like
- 0
- Continue reading or reply
Creating User From Apex Code
Hi All,
How can we make salesforce to send the user creation email to user when we create a user from apex code.
I could send the Reset Password mail using System.ReSetPassword method.
But when we used it Email says that
your password has been reset.
- Ashan
- November 22, 2011
- Like
- 0
- Continue reading or reply
Trigger on user object
Can we make a trigger to run at a user logout,login or session end. Does the user object gets updated in above events.
- Ashan
- October 24, 2011
- Like
- 0
- Continue reading or reply
Check Box Validation
Is there a way to validate my check box field , in order to keep only one of all objectes should have the field ticked?
- Ashan
- September 22, 2011
- Like
- 0
- Continue reading or reply
Getting content from within triggers is currently not supported.
When I try to call PageReference.getContent() from a trigger, I get the following error.
Getting content from within triggers is currently not supported.
Do anyone have a solution for this?
- Ashan
- September 21, 2011
- Like
- 0
- Continue reading or reply
Parsing JSON Array problem.
im getting a http response in the form of JSON array,, is there any support for parsing it in apex class.
- Salesforce_ckumar
- September 06, 2011
- Like
- 0
- Continue reading or reply
Dependant Fields In Package
I have a some apex classes which i want to install as a package to a another org.
And there are some custom fields which are reffered by these classes.
They already exist in the org which i'm going to install the package.
So when i try to install it gives a duplicate error.
Is there any way to remove these custom fields from the package or overwrite the existing fileds.
- Ashan
- September 05, 2011
- Like
- 0
- Continue reading or reply
SOQL Question - Syntax for keywords 'contains' and 'includes'
What would the syntax be for the following requirement in SOQL?
I have threee fields:
1. First Name
2. Last Name
3. Description (Long Text Area)
I need to get all names which have the word 'Developer' (or any keyword) in the 'Description' Long Text area. I have hit the wall trying to use the keywords 'contains' or 'includes' without success. Doesn anyone know how to build a SOQL using these both keywords?
Any help much appreciated.
- _why the unlucky stiff
- September 04, 2011
- Like
- 0
- Continue reading or reply
Save error. Expression cannot be assigned
Hi, I am trying to create a trigger to start an approval process after insert if a certain field is checked - we are getting this save error: 'Expression cannot be assigned'
MDFSubmitForApproval on MDF__c (after insert) {
for (MDF__c a : trigger.new) {
if (MDF__c.Submitted__c = 'true') {
Approval.ProcessSubmitRequest app = new Approval.ProcessSubmitRequest();app.setObjectId(a.id);
Approval.ProcessResult result = Approval.process(app);
}
}
}
Not sure where we are going wrong with this? Any help much appreciated.
- RVJ
- September 01, 2011
- Like
- 0
- Continue reading or reply
Calling getContentAsPDF from Trigger
So here's the thing, I realize that salesforce does not support the running of getContentAsPDF from a trigger -- which consiquently, is a royal pain. That said, I decided to embark on a journey to accomplish the task anyway. I've gone a bit into it, and had some success, but wanted to share with some other apex coders that are more versed than I the result, hoping to see if anyone can lend some extra ideas/insight to accomplish this.
Thus far, I've been able to actually run the getcontentasPDF as the reslt of a trigger, however, I've been stonewalled in that the returned document is blank (it's a PDF with nothing in it). I've tried it two different ways, and have gotten the same result (blank PDF). So my question is, any ideas on how to make it so the returned PDF is not blank (when you view the VF page normally, it shows properly) or am I stuck?
The two ways I am able to run getContentAsPDF:
1) When the trigger runs, I have a class that has a function that runs the getContentAsPDF function as a @future method. This works but has the issue of returning a blank pdf.
2) Thinking that was their systems way of blocking it, I decided to do a more convoluted and tricky route. The second method is from the trigger I call a visualforce page that has an autorun function that calls getContentAsPDF. This also works successfully, but again, the returned PDF is blank.
Any one have any ideas as to why the PDF may be turning up blank?
Thanks for any input!
- JD2010
- May 27, 2011
- Like
- 0
- Continue reading or reply
Rendering as PDF not rendering Chinese Characters
- J Keener
- January 09, 2009
- Like
- 0
- Continue reading or reply