+ Start a Discussion
sonali  vermasonali verma 

custom setting issue

Hi
I am just learning custom settings and here is my code.
I created a custom setting name as CustAccount and inserted 3 records having fields ID and Name, both are type Text.
public class customsettings
{
   public List<CustAccount__c> code { get; set; }
   public customsettings()
   {
     code=CustAccount__c.getall().values();
   }
}
<apex:page controller="customsettings">
 <apex:form >
 <apex:pageBlock >
 <apex:pageBlockTable value="{!code}"
                      var="a">
                      
         <apex:column value="{!a.Name}"/>  
     </apex:pageBlockTable>
 </apex:pageBlock>
 </apex:form>
</apex:page>

Now I want to update single record at a time.
Please tell me how this can be achieved.

Thanks
sonali verma
 
swati_sehrawatswati_sehrawat
When you say update, you want to update the custom settings?
sonali  vermasonali verma
yes, all the records
sonali  vermasonali verma
I used the <apex:inlineEditSupport and it worked.