Take the 2-minute tour ×
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It's 100% free, no registration required.

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 fieldset and stored it in a list. That means this list has all values of A,B,C fields of MyCustomObj.

Now I want to populate those values in a Repeater in a VF Page.

How I will display?

Any help would be appreciated.

share|improve this question
add comment

1 Answer

There are several examples if you google "Fieldsets in Visualforce".

Here's a nice tutorial from our own SSE guru Bob Buzzard:

http://bobbuzzard.blogspot.com/2011/02/visualforce-field-sets.html

share|improve this answer
    
Example is good. But there all fields are displayed as input field. But I want to display all fields in PageBlockTable in Page. –  Rudra_NoVoice Feb 18 at 18:16
2  
@Rudra_NoVoice The same principle still applies. Just put the loop within a pageBlockSection –  Kevin P Feb 18 at 18:24
1  
Again, after a quick google search, the following example shows up: salesforce.stackexchange.com/questions/245/… –  James Loghry Feb 18 at 18:24
1  
Rudra_NoVoice the example shows how to can access it. you just need to modify the code to use different components than the Inputs. –  Salesforce Wizard Feb 18 at 18:24
2  
its the same concept, just different tags... and the {!Account[field]} part doesn't need to be in anything (it can be just that, with out the apex:input etc) –  SalesForceGirl Feb 18 at 18:24
show 2 more comments

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.