Skip to main content
12 events
when toggle format what by license comment
May 9, 2014 at 10:41 history reopened eyescream
dphil
Chris Duncombe
Keith C
Alex Tennant
May 6, 2014 at 15:14 vote accept James
May 6, 2014 at 14:05 comment added dphil The easiest way to do this, is to have 2 separate lists. 1 list of SObjects, and then another List of Strings which dynamically grabs the fields you need. You can then place an <apex:repeat> (contains list of strings) inside of an <apex:pageBlockTable> (contains your list of SObjects) to dynamically build columns.
May 6, 2014 at 13:42 review Reopen votes
May 6, 2014 at 16:02
May 6, 2014 at 13:26 history edited James CC BY-SA 3.0
Clarity of question
May 6, 2014 at 3:35 history closed Mark Pond
ca_peterson
Bartley
Ryan Guest
jkraybill
Needs details or clarity
May 5, 2014 at 21:46 review Close votes
May 6, 2014 at 3:41
May 5, 2014 at 21:18 answer added Keith C timeline score: 2
May 5, 2014 at 20:52 comment added Dave Eckblad Sounds like you're asking about three separate things here...
May 5, 2014 at 20:47 comment added dphil What table are you speaking of?
May 5, 2014 at 20:41 comment added eyescream Your question is a bit unclear. Do you need a "polymorphic lookup" similar to the fact OwnerId can point to User or Queue, Activity's WhatId can point to Account or some custom objects? Or is your question about something very specific in a visualforce page you're struggling with? If you want to show all fields on an object in repeat or pageblocktable you should read about "dynamic apex", "describe" operations and maybe fieldsets... What are you trying to achieve?
May 5, 2014 at 20:34 history asked James CC BY-SA 3.0