Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Questions relating to Apex, the native programming language for the Force.com platform. Use it for general questions on syntax, errors, constructs, and rules of use. Most questions should include a code *excerpt* to help answerers understand specifically what has gone wrong or why you need help.
1
vote
Visualforce Error: System.TypeException: Invalid integer: 30.418933
Try changing integer.valueof(csvRecordData[8]); to decimal.valueof(csvRecordData[8]);
2
votes
Adding a new Echosign template in Salesforce
In Salesforce, click on 'EchoSign Admin' object tab. Then click on 'Resources' and you will find 5 different links for documentation, one of which is 'EchoSign for Salesforce Customization and Instal …
0
votes
1
answer
856
views
Why do I get method does not exist or incorrect signature error using comparable interface?
I am attempting to sort a list based on user clicking columns on visualforce page. Seems like the comparable interface is the best way to do this.
I can sort using static variables but it's messy. …
0
votes
Accepted
Why do I get method does not exist or incorrect signature error using comparable interface?
The problem was I didn't have an instance method in my parseutiiity class. I just needed to pass the argument into the method and return a value based on some condition.
public String get(String …
0
votes
1
answer
2k
views
Why am I getting ' Incompatible value type Object for Map' error?
I need to populate values in map<id, list<object_B__c>>(). I am getting an error when I attempt to do this. I was able to get code to compile but the problem is the way it's compiled, each iteration …
1
vote
0
answers
2k
views
How to getDmlFieldNames from dml exception?
I am attempting to retrieve the field names from a dml exception. I get values for debug statement 1 and 3. The debug statement to retrieve dmlFieldNames doesn't have any values. Why is this?
catc …
0
votes
Sending Visualforce page as Email body
You should render your visualforce page as a PDF and then you can have a button to send the document. This post may help you. Rendering a VF page as PDF and saving it as an attachement
2
votes
How to use DateLiteral in visualforce
You can build the list in your control using apex or you can do so in your visualforce page. I prefer creating the list client side. …
0
votes
1
answer
878
views
How to increase standard controller extension code coverage
I am attempting to write a test class for a very basic controller extension. I cannot seem to get 100% coverage in this method. From the 'Try' statement to the 'Else' statement has no coverage. Any …
1
vote
0
answers
572
views
Why is WhoId null for task created by email from Outlook plugin?
I developed a simple trigger to fire before insert on task hoping to capture the whoId for the completed task that is inserted from using the Side Panel in Outlook. I am trying to get WhoId for the t …
2
votes
1
answer
868
views
No such column 'name' on entity 'Task'
I am getting an error "No such column 'name' on entity 'Task'. It is coming from my query but I am not querying for 'name'. Please help.
public list<task> getTasks() {
list<account> myaccs = new li …
1
vote
1
answer
1k
views
Refine XML parse method
I am looking to refine functioning code. I am attempting to parse XML using the DOM and then display it on a visualforce page. Right now I am parsing each node into 3 lists of strings then calling t …
7
votes
2
answers
4k
views
How to prevent users from viewing apex code?
There are many apex classes and triggers in my production org. … Despite 'System Administrator' being the only enabled profile, (in Develop>>Apex Classes>>"Class Name">>Security) users can still view code within the class. …
7
votes
Apex : CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY & SELF_REFERENCE_FROM_TRIGGER
To prevent a recursive call, you should make sure your trigger only executes one time. Add a class with a static boolean variable. In the trigger, have a condition that checks the value of the boole …
3
votes
2
answers
3k
views
JSON response parser returning some fields null
I am trying to parse a JSON response from google. All the fields are populating with the exception of 'lat' and 'lng'. Not sure what I need to do to get the coordinates. Any help is much appreciate …