A field set is a grouping of fields.

learn more… | top users | synonyms

0
votes
2answers
26 views

Why can't managed Visualforce access unmanaged Field Set?

I'm hoping to use Field Sets to allow users of a managed package to customize the display of a Visualforce Page. The idea is that they install the package, create their own Field Set on the one of the ...
2
votes
2answers
43 views

Getting an object's fieldsets returns lowercased API names

Map<String, Schema.fieldset> fieldMap = Schema.SObjectType.Object_Name.fieldSets.getMap(); this properly returns a map of the fieldsets paired with their API names but the names come in all ...
0
votes
0answers
39 views

How to get all fields set dynamically where a object

I have a Vf page where I am displaying all the objects from the current environment. I am displaying it in a selectList. I need to get all the field set which are there on the object which is been ...
2
votes
1answer
92 views

Get Schema.SObjectField from Schema.FieldSetMember

I couldn't find any elegant (no use of Strings) to create a Schema.SObjectField from a Schema.FieldSetMember. Can you think of one?! The reason for asking this is that I was also unable to get the ...
0
votes
0answers
37 views

Page fails to render Fieldset fields as they reference empty lookup relation

I have a VF page that renders apex:outputField based on a FieldSet <apex:repeat value="{!$ObjectType.Child__c.fieldsets.MyFieldSet}" var="field"> <apex:column ...
3
votes
2answers
158 views

Display header even if <apex:pageBlockTable> is passed an empty List

Is there a way to render the column headers of a even if the passed list is empty? I have the field labels already in place as I am iterating over a Fieldset. <apex:pageBlockTable value="{!rows}" ...
3
votes
1answer
53 views

Is it possible to use FieldSets as Visualforce Component attribute?

I get a strange error message stating: Compilation error: Wrong type for attribute <c:sobjecttable ...
0
votes
0answers
51 views

Fieldsets and Child object fields in apex

I created a FieldSet (Fruit_FieldSet) in my org. Its on the object Fruit (which is the master). I added fields from the child object Apple (Apple_Type, which is a standard field) to the ...
0
votes
0answers
36 views

One field set which contains every field from All objects

Question for you knowledgable salesforce people Aim- to create one field set , which holds all fields from every object, and dynamically populate the field sets when new fields add to the object I ...
7
votes
2answers
686 views

How to compare the old and new values in a trigger for multiple fields?

I have 30+ fields in a field set, and in the update part of my trigger, I want to see if any of those fields have been changed. Can I access them using field sets? Anyway to do it, short of writing ...
0
votes
0answers
19 views

Field sets auto populating based on new fields being added [duplicate]

Is there any way that a field set within an object can automatically be populated with fields instead of the drag and drop functionality which currently in place ?
1
vote
2answers
470 views

Trying to create a table (edittable or not) with visualforce from fields that exist within account

I am trying to create a visualforce page to be displayed within accounts that ideally will be edittable (but if this isn't possible, then just a table to display the fields' values) that lays out a ...
2
votes
1answer
78 views

Is it possible to get an objects fieldsets with the REST API?

I know about the metadata api but the issue seems to be that its based on the SOAP apis? is there anyway to get the fieldsets from the rest api?
0
votes
0answers
58 views

How to create a table with sales data over months and years linked to account and inline view from account page layout

I've tried looking around, and am having no luck in how to do this. I've looked at fieldsets, pageblocktable usage, and some others but my lack of experience is preventing progress. We have as of yet ...
3
votes
1answer
25 views

Field Set for custom setting

Can we define a field set for a custom setting ? If yes, where do I do that ? If it's not possible, getting all the fields from custom setting will also do, which I can get using ...
0
votes
1answer
34 views

Add personAccount fields to fieldset

I have personAccount enabled in my org. I'm trying to add personAccount fields like PersonMobilePhone to an Account fieldSet but I cannot find these fields in the available fields. How can I build a ...
1
vote
1answer
320 views

I want display Current user fields on visualforce page using field set.but my code is displaying only fields on form but not the value of current user

Controller : public class AccountFieldSetController { public String queryString{get;set;} public List<User> accList{get;set;} public string user { get; set; } public User u { ...
0
votes
1answer
561 views

Invalid conversion from runtime type String to SOBJECT:

I have create a filed set on a custom object and trying to display the filed set to a VF page from apex code. This much is working fine but when i try to loop through the map in which the value is ...
5
votes
1answer
138 views

How to pass a fieldset to javascript?

When my user clicks a button, I want to access the fieldset by javascript. Can i do that? <apex:commandbutton value="Send" ...
1
vote
1answer
342 views

How To Show Help Text Within a apex:pageblocksectionitem From Within a Dynamic Component

So recently, I came upon an issue using my dynamic component within a pageBlock. As some may know, you cannot properly display help text (icon with a help text when you hover), within a ...
1
vote
1answer
1k views

How to display FieldSet label and its value in PageBlockTable

I am having a Custom Object (Say MyCustomObj).It has fields A,B,C,D,E. I have created a Fieldset and added A,B,C fields for MyCustomObj. By using Dynamic SOQL I got the values of all fields including ...
1
vote
1answer
35 views

Is there a way around the 40 char limit for labels in salesforce

Is there a way we can get around the 40 char limit for labels? I want to display a set of fields in a VF page, i am using a fieldset to dynamically determine the fields to display in the VF page. Some ...
2
votes
1answer
222 views

InlineHelpText with Fieldset and pageBlockTable

I have the following Visualforce <apex:pageBlockTable value="{!myObject}" var="obj"> <!-- iterate over the fieldset to render the columns --> <apex:repeat ...
2
votes
2answers
387 views

How to identify the is field required from field set?

I have create a field set for a custom object and i am displaying the field set on a VF page. I am not using apex:page block bec i want to change the style of the page so i am displaying using a ...
1
vote
3answers
1k views

How to get the field label name from field set

How to get the field label name from field set. I have created a fields set for custom object and I am trying to get the fiedset to display on VF page and I am able to get the fieldset display on VF ...
3
votes
1answer
2k views

Difficulty with apex:param and apex:actionsupport

Trouble with Action Support Currently, I have been very successful with my page until I ran into a snag with my action:support tag. I simply need to collect an Id, collected on the a form, then ...
8
votes
4answers
913 views

Can we insert or update FieldSets using apex code?

Although we can create or update fieldsets using salesforce UI but Is there any way to insert or update FieldSets using apex code (using metadata or API calls) ?
3
votes
1answer
548 views

Testing Code Dependent on FieldSets

I have a class that uses a field set to build out a dynamic query. This fieldset is passed into the class. Is there anyway I can create a test fieldset in my apex code so I don't have to hardcode ...
6
votes
1answer
1k views

Field Sets & Dynamic DML & Describing Fields Included in Field Set

I am attempting to write generic code which will use a fieldset, allowing for dynamic creation of a query. This bit is documented well enough in dynamic DML examples from SFDC. In addition to the ...
4
votes
1answer
126 views

Adding a fieldset to an unmanaged package

Can we add a fieldset to an unmanaged package? When I tried it didn't show up for selection. Is there anybody who faced the same situation?
2
votes
2answers
214 views

Attempt to de-reference a null object in fieldset

I am trying to get fields from Contact into fieldset. but i am not bale to get the fields properly i am getting error : Attempt to de-reference a null object my code : public class DemoCtrl{ ...
0
votes
2answers
350 views

FieldSet is not working

I am trying to learn FieldSet from this Salesforce document but i am getting the following Error while saving this class public class MerchandiseDetails { public Merchandise__c merch { get; set; } ...
7
votes
2answers
1k views

Not getting how FieldSet works in Salesforce

Please have a look at these 2 code snippets: (1) <apex:page id="pageId" standardcontroller="My_Object__c"> <apex:form id="formId"> <apex:pageblock id="pbId"> ...
4
votes
2answers
4k views

How to get FieldSet fields in Apex Dynamically (fieldset name is not static)

String fieldSetName = 'Account_FieldSet'; String ObjectName = 'Account'; I wanted get list of all fields from this fieldset. I know if fieldset name is hardcoded in the apex then following syntax ...
3
votes
1answer
880 views

PageLayouts and Fieldsets in APEX

We've repeatedly tried to figure out ways to display a Pagelayout and/or FieldSet settings in our custom VF pages without having to rely on the standard controller. For example to display a fieldset ...