function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ 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.