Archives

Apex Cache RecordTypes for fast retrieval

Apex class to lookup record types and cache them Test Class

Rate this:

Read More

Create Spring Bean On-Demand using Bean Lookup

Bean Configuration – create prototype method on demand using look-up method Configuration factory Test Class Each time you call createPartnerConnection()() you will receive the reference to newly created instance of PartnerConnection class.

Rate this:

Read More

Visualforce Lookup Field

I have seen that allot of people are struggling with creating lookup field in Salesforce. It is very easy by just referencing the child relationship id in an apex:Inputfield. See examples below: When using a standard controller in your page you can do the following: <apex:page standardcontroller=”Contact”> <apex:form> <apex:inputField value=”{!Contact.OwnerId}”/> <apex:inputField value=”{!Contact.AccountId}”/> </apex:form> </apex:page> <apex:page […]

Rate this:

Read More