Posts

Showing posts from February, 2016

Difference between Rest and Soap

Rest Soap Rest Stands For Representational State Protocol Soap Stands for Simple Object Access Protocol Rest Used for Light Weight Applications Soap Used For Heavy Weight Applications Rest Support Html,Json,Xml Format Soap Only Support Xml Format Rest Is More Preferred than Soap Soap is Less Preferred than Rest Rest requires Less Bandwidth Soap Requires more bandwidth Compared to Rest Transfer Using HTTP Only Transfer Using Http,SMTP,FTp Return Human Readable Format Does not Return Human Readable Format It is Light Weight so We use on Mobiles If we had Large number of data we use SOAP

Operators in Salesforce

<apex:page > <apex:form id="frm"> <apex:sectionHeader title="Operators" subtitle="calc"/>     <apex:pageBlock id="pb" title="calc">         <apex:pageBlockSection columns="6" id="pbs">             <apex:inputText id="first"/>             <apex:selectList id="ope" size="1" onchange="addi()">                 <apex:selectOption itemLabel="+" itemValue="+"></apex:selectOption>                 <apex:selectOption itemLabel="-" itemValue="-"></apex:selectOption>                 <apex:selectOption itemLabel="*" itemValue="*"></apex:selectOption>                 <apex:selectOption itemLabel="/" itemValue="/"></apex:selectOption>             </apex:selectList>             <apex:inputText id="second"/&g

Java Script in Visualforce page

It is explaining how we are using the javascript invisual force. <apex:page controller="javascriptec" id="mypage">  <script>  function clear()  {  }  function myfunc()  { // alert("i am in function");  var ks = document.getElementById("{!$Component.mypage.myform.myblock.mysection.item.fname}").value;  var ln = document.getElementById("{!$Component.mypage.myform.myblock.lsec.litem.lname}").value;  var ph = document.getElementById("{!$Component.mypage.myform.myblock.phones.phoneit.no}").value;   var mal = document.getElementById("{!$Component.mypage.myform.myblock.mails.mailitem.mail}").value;    count= ph.toString().length;   if(ks=="" || ln == "") { alert("Please Enter Your Name"); }  if(count<10 || count >10) { alert("Enter Valid Phone Number"); } var phoneno = /^[0-9]+$/; var maa= /^[a-zA-Z0-9._-]+@([a-zA-Z0-9.-]+\.)+[a-zA-Z0-9.-]{2,4}$/; var s=!(ph.match(ph

Menu in Visualforce | Tab Panel

Image
Visual Force <apex:page sidebar="false" showHeader="false" controller="gesdatas"> <style> .menu { background-color:#000; width:100px; color:#fff; background-image:none; border:none; height:30px; } .zx { border:1px solid #f50; background-color:#909090; } .active { background-color:#000; } .notactive { background-color:#a07dff; } </style>      <apex:tabPanel tabClass="zx" selectedTab="active" inactiveTabClass="notactive" >      <apex:tab name="Home" label="Home" id="one" styleClass="menu" title="home">      <h1>this is title</h1>      <p>This is Menu in SalesforceDeveloperspoint</p>      <p>This is Menu in SalesforceDeveloperspoint</p>     <apex:pageBlock >     <apex:pageblockTable value="{!datas}" var="da">        <apex:column value="{!da.id}"/>         <apex:colu

Digital Clock in Salesforce

Digital clock Functionality in salesforce. ------- Visual Force Page------ <apex:page controller="mydigitalc"> <html> <head> <META http-equiv="refresh" content="10"/> </head> </html> <apex:form > <apex:pageBlock title="time"> <apex:pageBlockSection > <apex:pageBlockSectionItem > <apex:outputText value="{0,date,MMMM dd, yyyy,'', HH:MM:SS:MS}"> <apex:param value="{!TODAY()}" /> </apex:outputText> {!displayval} {!display} </apex:pageBlockSectionItem> </apex:pageBlockSection> <apex:commandButton value="click" action="{!display}"/> </apex:pageBlock> </apex:form> </apex:page> ----controller --- public class mydigitalc {     public String getToday() {         return null;     }     public String today { get; set; }     public PageReference display() { display=DateTime.now().format('dd-MM-yy

Difference Between SOQL and SOSL

SOQL : salesforce object Query Lanuage i) return type is list ii) soql used in triggers iii) fetch records using SELECT iv) Using SOQL we can Search only on one object at a time. v) We can query on all fields of any datatype  SOSL: Salesforce Object Search Languge i) return type is List<List<sobject> ii) sosl cannot used in triggers iii) Fetch records using Find iv ) Using SOSL we can search on many objects at a time. v) We can query only on fields whose data type is text,phone and Email.

Salesforce Introduction

Image
What is Salesforce ? Salesforce is Leading Customer Relationship Management in this Generation.It Runs in the Force.com . This is Best Platform for Freshers Who are Coming in to the Salesforce. 1) Salesforce is a Cloud Computing Technology.so no need to consider the platform like software installation and Hardware Compatability. 2) It is a multi tenant architecture.it follow MVC Architecutre. 3) It is Introduced in 1999 by Marc Benioff. 4) Register Here for Developer Version https://developer.salesforce.com/