My question is not to prepate daynamic query using field set,My Question is i have 10 fields in fieldset,i want to display only 5 fields form fieldset how to do that this in daynmically. This is my question.
We can to this hordcoding the field name like below example:
for(Schema.FieldSetMember f : this.getFields()) { if(f.getFieldPath().equals('xx')) // xx is field name { //some logic } }
1) http://amitsalesforce.blogspot.com/2015/02/field-sets.html
Let us know if this will help you
My question is not to prepate daynamic query using field set,My Question is i have 10 fields in fieldset,i want to display only 5 fields form fieldset how to do that this in daynmically. This is my question.
We can to this hordcoding the field name like below example:
for(Schema.FieldSetMember f : this.getFields()) {
if(f.getFieldPath().equals('xx')) // xx is field name
{
//some logic
}
}
Any other possibilities let me know.