You need to sign in to do that
Don't have an account?
subbaiah Godena
how to insert the data through visualforce page in custom settings
Hi
how to insert the data through visualforce page in custom settings?
how to insert the data through visualforce page in custom settings?
You can insert data into custom settings just like you would do with custom objects.
Example:
These are the details of my Custom Setting:
At this time, I have no records yet for this custom setting:
I created a very simple Visualforce page that lists the fields and a Save button:
And the Controller which saves the record to the database:
If you open the page, enter the fields and save the record, a new custom settings record will be inserted in the database:
After saving, the detail page of the new record is shown:
Clicking "Back to List" link will show you the list with the new record:
Hope this helps!
Best regards,
Martijn Schwärzer
Hi Martijn Schwärzer,
This code is working fine for inserting the values into custom settings using VF page.I tried to write the code to update the same set of values biut I am not able to do so. Could you help us in writing apex code and VF apge for upadting the custom settings.
Thanks
Nikhil
Visualforce Page APEX Controller
how can we create record in custom setting through lightening web component ,as object api name is not supported for the custom setting?
please help.
thanks