Wednesday, December 31, 2014

Adding and Deleting rows dynamically in pageblock table in Visualforce page.

Adding rows dynamically in pageblock table in Visualforce page. Hi,  In this post i am going to give sample example of how to add a row dynamically in pageblock table and how to remove the row from pageblock table dynamically. For this i am developed one Visualforce page, One Controller and One Helper class. Initially i am loading the page with one row then after once the user clicks on AddRow button it is going to add  one new row to that pagblock table. If you want to remove a particular row you can remove using Remove row link. Visualforce Page: <apex:page controller="AddMultipleAccountCLS"> <apex:form id="theForm">  <apex:pageblock...

Tuesday, December 30, 2014

How to create Visualforce Tabs in Salsforce and Create Account,Contact,Opportunity record at once using Visualforce page?

How to create Visualforce Tabs in Salsforce and Create Account,Contact,Opportunity record at once using Visualforce page? Hi, In this post i am going to give idea on how to create visualforce tabs, how to use JavaScript for validation in VF page and how to assign different colors to each pageblock section in visualforce, for that, I created a VF page with Custom Controller to read the Account,Contact,Opportunity to save all the three object details once with JavaScript validatons. Setup-->Create-->Tabs-->Click on New (Visualforce Tabs) Section-->Enter the Tab Label and Name of the Tab--> Select the VF page-->Tab Style-->...

Sunday, December 28, 2014

Custom Controller Pagination with dynamic search.

Custom Controller Pagination with dynamic search in Visualforce page. Hi, In this post i am going to give a small example on how to use dynamic search in visualforce with pagination using custom controller. For this once the user enter his search criteria and click on search button the page is going to populate account details with Pagination of (Next,Previous,Last etc..). To achieve this i am using custom controller instead of Standared Set Controller. Visualforce Page: <apex:page controller="AccountMultipleSearchWithPagenationCLS" action="{!searchAcc}" > <script type="text/javascript">     window.onload=function()...

Saturday, December 27, 2014

What is @RemoteAction in Salesforce?

What is @RemoteAction in Salesforce and when we are going to use this @RemoteAction? JavaScript remoting in Visualforce provides support for some methods in Apex controllers to be called via JavaScript. JavaScript remoting has three parts:  The remote method invocation you add to the Visualforce page, written in JavaScript. The remote method definition in your Apex controller class. This method definition is written in Apex, but there are few differences from normal action methods. The response handler callback function you add to or include in your Visualforce page, written in JavaScript. To...
Page 1 of 10312345Next

 
| ,