A proprietary Java-like programming language for the Force.com Platform.

learn more… | top users | synonyms (3)

1
vote
0answers
17 views

building a search functionality

I am trying to search account table by providing a search string. I am building a query based in different conditions and then adding the returned records in a list. The functionality is working ...
1
vote
1answer
28 views

Refactoring APEX to keep all database calls outside of for loops

I have the following APEX code. I have been trying for hours to try and refactor it so that the SOQL query is outside of the for loop without any luck. Any ideas? ...
1
vote
0answers
43 views

Salesforce Report that searches long text fields, has customizable view, easy to update, etc

I got really tired of how ugly and inflexible Salesforce Reports are. So I made this Apex/Visualforce combo that searches long text fields, makes adding and removing fields a snap, has a customizable ...
1
vote
0answers
35 views

Salesforce Trigger Logic

The following code is inside a before insert / before update trigger. Essentially what I have in our app is that when a request type (request.Type__c) is chosen, the scheduler (request.Scheduler__c) ...
1
vote
0answers
287 views

HTML to plain text converter

Please, review the code below. Test class: ...
1
vote
1answer
39 views

Detecting Windows Phone and Tablet clients

This is called from a VF page, styleClass="{!IF(isWindows8Device, 'windows', 'not_windows')}" So if it's a windows device, return true. The best thing to do ...
2
votes
2answers
404 views

Account hierarchy

I had posted a question some time back for the best way of doing an account hierarchy, and this is the way implemented at last. Can someone point out any obvious flaw in this (other than SOQL)? The ...
3
votes
1answer
91 views

Format current date

I was refactoring some code and found this: ...