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
AlexPHPAlexPHP 

Can you access Custom Settings in S-Control / Visualforce?

Are custom settings not accessible via s-control and visualforce pages?

 

 

On the help page for Custom Settings, it says "you can access custom settings from formula fields, validationrules, Apex, and the Force.com Web Services API."

 

So if I wanted to use custom settings in an s-control, I have to make an API call?

 

Is there a better way to do this? 

 

Thank you 

Anand@SAASAnand@SAAS
Custom settings are accessble in visual force. However your controller will need to make it visible to your page. SControls use the ajax API bridge and can retrieve the custom settings. However use of SControls is not a  good practice and if you plan to add things to an existing SControl, might as well try converting it to a visual force page.