How to truncate string using apex in Salesforce?
To truncate string using apex in Salesforce String str = 'sfdcblog'; String trucatedStr = str.substring(0,3); Cheers!!!
To truncate string using apex in Salesforce String str = 'sfdcblog'; String trucatedStr = str.substring(0,3); Cheers!!!
To parse CSV to sObject using Apex in Salesforce, use the below link to get the code http://wiki.developerforce.com/page/Code_Samples#Parse_a_CSV_with_APEX Sample code: public List<List<String>> parseCSV(String contents,Boolean skipHeaders) { List<List<String>> allFields = new ....
The import wizard imports Accounts, Contacts, Leads, Solutions and Custom Object data. The inbuilt Import wizard's advantages: You need not install any third party tool Your data is small and ....
Sample code: //Just to display, use the below code. public class ImportCtrlr { public Map<String, Schema.SObjectType> objs {get; set;} public ImportCtrlr() { objs = Schema.getGlobalDescribe(); } } For ....
Visualforce: <apex:page standardController="Photo__c" extensions="SlideShow" sidebar="false"> <apex:form > <center> <apex:image url="{!tmp}"/> <br/> <br/> <br/> <apex:commandButton action="{!prev}" value="Previous"/> <apex:commandButton action="{!nxt}" value="Next"/> </center> </apex:form></apex:page> Apex Controller: Public Class SlideShow { public List<Photo__c> ....
Use the future annotation to identify methods that are executed asynchronously. When you specify future, the method executes when Salesforce has available resources. For example, you ....
You want to write a trigger that creates a new record as part of its processing logic; however, that record may then cause another trigger to fire, which ....
To convert word and other format files to pdf, click the below links http://convert.neevia.com/pdfconvert/ or http://online2pdf.com/ Easiest and fast way!!! Cheers!!!
If you are unable to select year in Salesforce Date picker, just enter the year. Simple idea. Just enter the year. I have entered 2005, which is not available in ....
Export: Exporting (Getting) data from Salesforce. Select operation. Import: Importing (Inserting) data into Salesforce. Insert, Update and Upsert operations. Cheers!!!