+ Start a Discussion
Sujan Kumar ReddySujan Kumar Reddy 

How to access custom settings in our Visualforce Page?

Hi Salesforce Gurus,

 

How to access custom settings? Custom settings data can then be used by formula fields, validation rules, Apex, and the Web services API only?? Can't we access custom settings in our Visualforce page? if we can, How to access it on our visual force page?

Best Answer chosen by Admin (Salesforce Developers) 
Tom G.ax970Tom G.ax970

You can access hierarchial settings inside visualforce using $setup, but list settings are not available.  I'd love to read an explanation why.

 

http://www.salesforce.com/us/developer/docs/pages/Content/pages_variables_global.htm

All Answers

KapilCKapilC

Hi Sujan,

 

This link will help you out to solve your problem.

 

Custom settings

 

[If you got answer from my post please mark it as solution.]

 

Thanks,

Kapil

Tom G.ax970Tom G.ax970
I think the hope was access to custom settings from pages via merge fields. That would be cool.
Tom G.ax970Tom G.ax970

You can access hierarchial settings inside visualforce using $setup, but list settings are not available.  I'd love to read an explanation why.

 

http://www.salesforce.com/us/developer/docs/pages/Content/pages_variables_global.htm

This was selected as the best answer