No Results
Search Tips:
- Please consider misspellings
- Try different search keywords
Newer Version Available
FieldSet Class
Namespace
Usage
Field sets are also available from sObject describe results. The following lines of code are equivalent to the prior sample:
Example: Displaying a Field Set on a Visualforce Page
FieldSet Methods
The following are methods for FieldSet. All are instance methods.
getDescription()
Signature
public String getDescription()
Return Value
Type: String
Usage
Description is a required field for a field set, intended to describe the context and content of the field set. It’s often intended for administrators who might be configuring a field set defined in a managed package, rather than for end users.
getFields()
Signature
public List<FieldSetMember> getFields()
Return Value
Type: List<Schema.FieldSetMember>
getLabel()
Signature
public String getLabel()
Return Value
Type: String
getNamespace()
Signature
public String getNamespace()
Return Value
Type: String
Usage
The returned namespace is an empty string if your organization hasn’t set a namespace, and the field set is defined in your organization. Otherwise, it’s the namespace of your organization, or the namespace of the managed package containing the field set.