How to free list memory using apex?
MyList.clear(); Where MyList is a List variable. Example: List<Account> MyList = new List<Account>(); MyList.add(new Account(name = 'test'); MyList.clear(); // Removes the accounts Cheers!!!
MyList.clear(); Where MyList is a List variable. Example: List<Account> MyList = new List<Account>(); MyList.add(new Account(name = 'test'); MyList.clear(); // Removes the accounts Cheers!!!
getChildRelationships() can be used to retrieve all the related or child objects of an object in Salesforce Apex. Sample code: Schema.DescribeSObjectResult objResult = Account.SObjectType.getDescribe(); List < Schema.ChildRelationship > objRelationships = ....
Step 1: Generate Partner WSDL. Save the generated Partner WSDL. Step 2: Generate Apex code using the generated Partner WSDL. Copy the generated code and create a new Apex Class. ....
The below Javascript code is used to reload a page location.reload(true); Cheers!!!
Syntax: <apex:inputSecret value="{!inputValue}" id="theSecretInput"/> Example: <apex:inputsecret id="pwd" value="{!pwd}"/>
In order to use apex code to submit the record for Approval process, we have to first create Approval process in Create --> Workflow & Approvals. Sample code: void ....
Visualforce page: <apex:page controller="SearchAcctFromSf" standardStylesheets="true"> <apex:form > <apex:pageBlock > <apex:pageblockSection columns="2" > <apex:outputLabel value="UserName"/> <apex:inputText required="true" id="userName" value="{!userName}" /> <apex:outputLabel value="Password"/> <apex:inputsecret id="pwd" value="{!pwd}"/> ....
Setup --> Customize --> Home --> Home Page Layout. Click Edit button. Uncheck the checkbox to hide it in Home page. Cheers!!!
To display checkbox options in vertical direction, layout property is used. Example: <apex:selectCheckboxes value="{!relObjs}" layout="pageDirection"> <apex:selectOptions value="{!relObj}"/> </apex:selectCheckboxes>
Salesforce to Salesforce connection can be used for data sharing. If an organization is too big and they are using two Salesforce.com organizations to avoid governor limits in Salesforce.com, to ....