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
yagnayagna 

Visualforce + Metadata

Hi,
 
Is there any way to reference Metadata Objects in Visualorce pages or SControls?
 


Message Edited by yagna on 05-21-2008 07:04 PM
dchasmandchasman
Visualforce yes - no on scontrols and no plans to add anything new to scontrols going forward. VF formulas support a greatly enhanced version of $ObjectType that allows you to access the majority of information you can obtain via an API Describe call.

Code:
$ObjectType.Account.fields.name.label

would get you the localized label for  the Account.Name field. See the documentation for more info on $ObjectType.

yagnayagna
Thanks for the reply Dough, Can I access Validation Rules and modify them using Visualforce ?