Wednesday 26 September 2012

Inline Editing in PageBlockTable


I was eager to know about inline editing in page-block table as we usually see on simple Native pages.so I studied about this decent feature of Salesforce and tried at my end as below:

I practiced with simple Sobject Account.


VF Page code:

  
      
                          
                
                
          
          
              
                  
                      
                          
                      
                  
                  
                      
                          
                      
                  
              
          
      
  

Controller code:
public class InlineEditing
{
   public List getListofAccounts()
   {
       List accTempList = new List([select id,Name,Industry from      Account order by LastModifiedDate ASC limit 5  ]);
       return accTempList;
   }
   public InlineEditing(ApexPages.standardController sc)
   {
       
   }
}
Thanks for visiting.

No comments:

Post a Comment