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.
3
votes
1
answer
646
views
Apex example code to create, get and update user settings?
I have taken the example code from the Apex Developers Guide and it still produces the same error:
ID OwnerId = UserInfo.getOrganizationId();
Hierarchy__c CS = Hierarchy__c.getInstance(OwnerId … I then need to be able to retrieve and update these settings as required, again from within Apex. …
2
votes
1
answer
982
views
view state does not save state
'desc' : 'asc';
// run the query again
runQuery();
}
sortDirNew is defined in the Apex code as:
public String sortDirNew {
get { if (sortDirNew == null) { sortDirNew = 'asc'; } return …
0
votes
1
answer
2k
views
Removing leading zeros in a string in a VFP page?
case.CaseNumber}"/>
</apex:outputText>
</apex:column>
The field displayed comes from a SoQL command that I build inside my Apex code:
soqlSpecial = 'SELECT Id, CaseNumber, Severity__c, Subject, …