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
Accepted
URLFOR and a parameter name which starts with a digit
You need to modify your code.
Currently you are using this code:
<apex:commandButton value="New"
action="{!URLFOR($Action.Task.NewTask, null, [00No0000006UApM = TaskType])}" />
You need to us …
3
votes
How to write down test class for If else condition
It is very simple, you need to create two test method in your test class.
In first method add conditions so that your if condition will be satisfied.
In second method add conditions so that if condit …
5
votes
Accepted
DEV 501 - Apex Integration Scenario
I appeared for DEV 501 multiple choice question in May 2014. There was only one question related to use case for integration scenario. DEV 501 multiple choice question exam does not have questions rel …
0
votes
Using <apex:selectList> with standard controller
You can use following apex code in extension:
public List<SelectOption> getSerciceOfInterestOptionList(){
tempOptionLst = new List<SelectOption>();
Schema.DescribeFieldResult rst5 = Service_Order …
2
votes
Accepted
anybody else experiencing this problem?
I have faced this issue many time. This issue happens because of browser. Please make sure that in your browser zoom level is set to 100%. You can use CTRL and '+' or '-' button to set zoom level in c …
0
votes
Detecting dead code in Salesforce
You can use APEX-PMD tool with eclipse.
APEX-PMD - A Static Code Analyzer for APEX: Since Apex is based on Java, most of the basic programming practices of Java apply to Apex as well. … After eclipse has started, just right click on any of the folders that contain Apex Classes. …
0
votes
Accepted
Dynamically pass custom lookup field value to another custom field
You need to create a new custom field on Ticket Object. The type of field will be formula field.
In new field:
1. Select Formula
2. Enter name of field, select return type as 'Text'
3. Then in advance …
2
votes
Accepted
Custom Lookup on VF Page
For more details refer to following link:
https://help.salesforce.com/apex/HTViewHelpDoc?id=fields_lookup_filters_defining.htm …
2
votes
3
answers
384
views
How to check total code coveragee
How can I check total average code coverage for all apex class. Earlier there used to be some button or link which says 'Estimate your organisation code coverage'. But now there is no such button. … Can someone please help me how to check total code coverage for an organisation for all apex classes and triggers. …
0
votes
Accepted
Can we have more than one context user for a single email service in salesforce?
We can have more than one context user for one email service. Context user is not email service specific. Context user is specific to Email address. One email service can have multiple email address a …
1
vote
1
answer
4k
views
Approval by email using custom salesforce email service
I am trying to implement approval or rejection by email functionality. But I can not use salesforce standard 'Enable Email Approval Response' functionality as approval process is assigned to queue als …
2
votes
Accepted
Accessing Controller Property from VF page
@RisingPhoenix You can use <apex:outputField> only with SObject or objects that are Visualforce field component resolvable. So in your case you should use <apex:outputText> instead of <apex:outputFiel …
2
votes
How to access jquery plugin from an apex page?
First of all you need to include jquery file in your visualforce page. You can add jquery file in your static resource, then you can use following sample code in include jquery from static resource in …
0
votes
2
answers
7k
views
Apex Code to create recurring event salesforce
Can anyone provide me sample apex code to create recurring event in salesforce. …
2
votes
I want to lock the record using apex
There is no way to lock the record. But you can change the record type of record based on your condition. Different record type will have different page layout. From one layout you can remove edit but …