Você está na página 1de 8

Getting Started with SalesForce CRM

Getting Started with SALESFORCE Part XVI

BISP is committed to provide BEST learning material to the beginners and advance learners. In the same series, we have prepared a complete end-to end Hands-on Beginners G ide !or Sales"orce. The doc ment !oc ses # stom #ontrollers, #ontroller E$tensions and insales"orce.com. %oin o r pro!essional training program and learn !rom e$perts.

Description:

Histor :
Version Date $%& $%& Description Change Initia# Dra't Re*iew+& A!thor Chandra Pra(ash Shar)a P!"#ish

www.bispsol tions.com Page '

www.bisptrainigs.com

www.h&periong r .com

Contents
#ontents.......................................................................................................................... ( # stom #ontrollers.......................................................................................................... ) *hat are # stom #ontrollers and #ontroller E$tensions+................................................) How To #reate Page B& ,sing # stom #ontrollers -........................................................) Static .eso rces -............................................................................................................ / How to ,pload "ile or image in Static .eso rces -......................................................../ Sites -............................................................................................................................... 0 *hat is sites -............................................................................................................... 0 Hot #reate Sites insales"orce.com -..........................................................................1

www.bispsol tions.com Page (

www.bisptrainigs.com

www.h&periong r .com

C!sto) Contro##ers
Standard controllers can provide all the ! nctionalit& &o need !or a 2is al"orce page beca se the& incl de the same logic that is sed !or a standard page. "or e$ample, i! &o se the standard 3cco nts controller, clic4ing a Sa*e b tton in a 2is al"orce page res lts in the same behavior as clic4ing Sa*e on a standard 3cco nt edit page. However, i! &o want to override e$isting ! nctionalit&, c stomi5e the navigation thro gh an application, se callo ts or *eb services, or i! &o need !iner control !or how in!ormation is accessed !or &o r page, &o can write a c stom controller or a controller e$tension sing 3pe$-

,hat are C!sto) Contro##ers and Contro##er E-tensions.


In 2is al"orce c stom control is an ape$ class that implement all o! the logic !or a page witho t leaving a standard controller. # stom control se in 2is al"orce page r n entirel& in s&stem mode the& does not en!orce the permissions and !ield-level sec rit& o! the c rrent ser.

How /o Create Page 0 1sing C!sto) Contro##ers :


#lic4 on Set!p 6 de*e#op 6 Pages Then #lic4 on 7ew b tton. 8. 9irectl& write in address bar a!ter login Sales"orce site then add given address in rl :ape$:7ewpage' !or e$ample &o see here https-::c.ap'.vis al.!orce.com:ape$:7ewpage' 2ote :3 '.;a4e S re in ,ser Setting 9evelopment ;ode is enable. (. <o can # stom #ontrol &o in Standard 8b=ect and # stom ob=ect. E-a)p#e &:3 In this e$ample create table with st&le sheet and how to call image b& sing c stom ob=ect #ontroller. Step & :3 #reate new page :ape$:7ewpage'

www.bispsol tions.com Page )

www.bisptrainigs.com

www.h&periong r .com

2ote :3 Be!ore sing this code >ape$-image val e?@ABC.eso rce.imagenameD@:6 ma4e s re add image !ile in Static .eso rces.

Static Reso!rces :
,se static reso rces to pload content that &o want to re!erence in a 2is al"orce page, incl ding .5ip and .=ar !iles, images, st&lesheets, %avaScript, and other !iles.

How to 1p#oad Fi#e or i)age in Static Reso!rces :


#lic4 on Set!p 6 De*e#op 6 Static Reso!rces Then clic4 on 7ew b tton. www.bispsol tions.com Page / www.bisptrainigs.com www.h&periong r .com

Step &:3

Step 4:3 "ill all !ields then clic4 on Sa*e b tton.

3!ter that &o can call image b& sing this code >ape$-image val e?@AB C.eso rce.imagenameD@:6

Sites :
,hat is sites :
"orce.com sites enables &o to create p blic websites and applications that are directl& integrated with &o r Sales!orce.com organi5ationEwitho t reF iring sers to log in with a sername and password. <o can p blicl& e$pose an& in!ormation stored in &o r organi5ation thro gh pages that match the loo4 and !eel o! &o r compan&Gs brand. ,se sites to create p blic comm nit& sites to gather c stomer !eedbac4, branded login and registration pages !or &o r portals, *eb !orms !or capt ring leads, and so on. Beca se sites are hosted on "orce.com servers, there are no data integration iss es. 3nd beca se sites are b ilt on native 2is al"orce pages, data validation on collected in!ormation is per!ormed a tomaticall&. <o can allow sers to access &o r site thro gh &o r niF e "orce.com domain and ,.H, or &o can register &o r own branded domain or s b domain to redirect to &o r site. www.bispsol tions.com Page 0 www.bisptrainigs.com www.h&periong r .com

#reate m ltiple sites that appeal to di!!erent a diences and satis!& &o r compan&Gs vario s b siness needs. "or e$ample, a so!tware compan& co ld create one site !or new developers, another !or c stomers, and a third !or mar4eting.

Hot Create Sites insa#esForce%co) :


#lic4 on Set!p 6 De*e#op 6 Sites then clic4 on 7ew b tton. Step & :3 Enter website name and clic4 on #hec4 3vailabilit& b tton. i! there is site name is available chec4ed chec4 bo$ and clic4 on .egister ;& "orce.com Page b tton. Step 4 :3 #lic4 on 2ew b tton.

Step 5:3

www.bispsol tions.com Page 1

www.bisptrainigs.com

www.h&periong r .com

3!ter that &o this ,.H http-::bisp(-developercan se edition.ap'.!orce.com: this ,.H call directl& page no need to an& ser name or password. E-a)p#e 4:3 How to se Tab in Sales"orce sing ape$ code.+ "irst &o will create ape$ page then write the code !or tabing.

www.bispsol tions.com Page I

www.bisptrainigs.com

www.h&periong r .com

www.bispsol tions.com Page J

www.bisptrainigs.com

www.h&periong r .com

Você também pode gostar