A field set is a grouping of fields.

learn more… | top users | synonyms

1
vote
0answers
20 views

Using fieldset: Invalid field core for SObject Case Error

Extension: public class fieldset1display() { public string fieldset1 { get; set; } public fieldset1display(ApexPages.StandardController std) { fieldset1 = 'fieldset1'; ...
0
votes
1answer
13 views

How to insert or update a record using fieldset without using standard save method?

I want to write code for inserting and updating record using fieldset, but i don't know how to map the fields(from fieldset) to my controller. Can anyone help me with this?
0
votes
1answer
17 views

getting Internal Server error with dynamic fieldset and standard controller

I have the following inline visualforce page which gives me an internal server error. <apex:page standardcontroller="Agreement__c"> <apex:repeat ...
1
vote
1answer
52 views

I am not able to get value from fieldset in visualforce page while executing

Apex contrller:- String queryFields = null; for(Schema.FieldSetMember field : SObjectType.Opportunity.FieldSets.Opportunity_Summary_Fields.getFields()){ queryFields = (queryFields == ...
0
votes
1answer
39 views

Delete fieldset using Tooling/Metadata API (JSforce)

Tried this using the following 2 snippets; both failed. Snippet 1 conn.tooling.sobject('FieldSet') .delete({ DeveloperName: fieldsetName }, function(err, meta) { if (err) ...
1
vote
2answers
77 views

Change color of apex:outputfield in a vfp for a lookup field in a fieldset

I'm displaying a fieldset in the Community. The fieldset contains text, checkbox and lookup fields. So, I'm using the component to display the values from different data types. The issue is that the ...
2
votes
0answers
19 views

Link in a fieldset [duplicate]

I have one fieldset on Sobject which is contain 8 field's set but i need to put LINK on only one field. Is it possible? If so, please tell me the way to achieve that.
0
votes
0answers
40 views

Field set not working

I have a object "Line" and a 2 record types "i4b line" & "i4r line". 2 field sets are there for these record types. Field set is getting used in my custom line edit page through a vf component and ...
0
votes
1answer
40 views

Account update trigger error

I have below apex trigger on Account that will create records on custom object Alert_vod__c, whenever there is an update on specific fields (as declared in fieldset) of Account. Trigger: trigger ...
0
votes
1answer
13 views

How to give and use htmlId for a field if a field is in field set

I am working on page where there are 5 fields in a field set . Now , I want to giv Id to a particular field in Field set and want to use $Component to get the field and run some Javascript function. ...
1
vote
1answer
75 views

Required field in the fieldsets

Is there any way to mark the field required by default in the fieldset? i want that the required checkbox become non editable. Thanks,
0
votes
0answers
53 views

Update the value of Individual fields of a Fieldset

I have an object which has almost 200 fields which are checkboxes. Now the Fields are grouped into 2 fieldsets called GoldFields and SilverFields according to some requirement. Now if anybody selects ...
1
vote
2answers
64 views

Merge two Field Sets and use them in VF

I want to create a very dynamic VF page with custom controller which would change field sets based on my custom logic. The real question is - can I create new Field Set in apex that would be then ...
0
votes
2answers
239 views

Access label of Field Set in Visualforce

I am using Field Set in Visualforce pages to render user-defined fields. <apex:pageBlockSection title="HARDCODED TITLE"> <apex:repeat ...
0
votes
0answers
35 views

how to Create own fieldset for opportunity team object?

I observed that an Opportunity team will not have fieldset of own.So,would like to imitate functionality of fieldsets in opportunity team,How is it achieved? also would like to use this developed ...
3
votes
1answer
280 views

How to get a DescribeFieldResult from a FieldSetMember?

Fieldsets can reference fields in related objects, something like Opportunity.Account.Name. If you iterate over such FieldSetMembers on a Visualforce page and try to render a fields inline help text ...
2
votes
1answer
206 views

Can I add a custom field to a field set used by a Visualforce page from a managed package?

As a managed package owner, I have a VF page rendering an object containing a field set with 5 fields (using dynamic bindings similar to ...
1
vote
1answer
87 views

Getting an extra line with field set

I am trying to use field set to get list of fields to show in the VF page so the customer can adjust the fields without having to touch the code. But It seems to me that when using field set, I am ...
4
votes
2answers
740 views

How to use fieldsets with Lightning?

Been trying to figure out how to create a salesforce Lightning input form, based on fields from a fieldset. As an aura enabled apex method is not allowed to pass an entire fieldset I tried by ...
0
votes
1answer
245 views

Display dates in dd/mm/yy format only for Date fields (From a repeat to take all selected fields from a field set)

I want to display all date fields in dd/mm/yy format. Currently it's displaying in dd/mm/yyyy format. (All fields are retrieved from a fieldset, the fieldset includes fields with different data types ...
0
votes
2answers
195 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
320 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
240 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
571 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 ...
3
votes
2answers
788 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}" ...
4
votes
2answers
246 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
133 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
90 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 ...
8
votes
2answers
5k 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 ...
1
vote
2answers
2k 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 ...
3
votes
1answer
232 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?
3
votes
1answer
61 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
127 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
570 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
1k 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
316 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" ...
2
votes
1answer
668 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
3k 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
314 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 ...
3
votes
1answer
409 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
909 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 ...
2
votes
3answers
3k 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
4k 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 ...
10
votes
3answers
2k 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
1k 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
2k 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
135 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
281 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
455 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
2k 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"> ...