Wednesday, 7 December 2011

InlineEditing on Visual Force Page


public class testpagecontroller{
public List<account> acclst=new List<account>();
      public List<account> getaccounts(){
      acclst=[select name,industry,type from account];
      return acclst;
public void save1(){

       update acclst;



<apex:page controller="testpagecontroller">
<apex:form >
<apex:pageBlock mode="inlineEdit">
<apex:pageBlockButtons >
<apex:commandbutton value="save" action="{!save1}"/>
<apex:pageBlockTable value="{!accounts}" var="a">
<apex:column Headervalue="Account Name">
<apex:outputfield value="{!}"/>
<apex:column headervalue="Industry">
<apex:outputfield value="{!a.industry}"/>
<apex:column >
<apex:outputfield value="{!a.type}"/>

No comments:

Post a Comment

Convert 15 character IDs to 18 character IDs in formula field

Hi , We have new method " CASESAFEID() "in formula field now to make 15 character Id to 18 character. Classic 1. Go to  Se...