You need to sign in to do that
Don't have an account?

Adding fields to rows in UI which are not in the underlying object
I frequently have a requirement to list rows and a add field(s) to each row on the page which are not in the underlying table. I always end up adding "dummy" fields to the table so that I can use them in the UI.
Is there a better, more elegant way of doing this?
Happy to provide examples if it helps
NB: I run up against the same problem when I want to render/disable a button or link for each row in a list based on the row's status etc.
Try using decorator pattern. Check this video (from ~19min) it covers what you are looking for
https://www.youtube.com/watch?v=J372XmYds-A
All Answers
Try using decorator pattern. Check this video (from ~19min) it covers what you are looking for
https://www.youtube.com/watch?v=J372XmYds-A
I generally use apex:pageBlockTable, but the requirement should be the same in either case (I think)
The decorator pattern is exactly what I am after
Thanks