You need to sign in to do that
Don't have an account?
NickDev
Convert fields into rows using Apex?
I have an object that has mulitple fields such as Week_End_Date, Monday_Hours, Tuesday_Hours, Wednesday_Hours, Thursday_Hours, Friday_Hours
I'm trying to use Apex consumed by a Visual Force page to basically convert this into seperate rows - a bit like a pivot, like this:
Week_End_Date, Monday_Hours
Week_End_Date, Tuesday_Hours
Week_End_Date, Wednesday_Hours
Week_End_Date, Thursday_Hours
Week_End_Date, Friday_Hours
What would the best way to achieve this be?
Thanks
I'm trying to use Apex consumed by a Visual Force page to basically convert this into seperate rows - a bit like a pivot, like this:
Week_End_Date, Monday_Hours
Week_End_Date, Tuesday_Hours
Week_End_Date, Wednesday_Hours
Week_End_Date, Thursday_Hours
Week_End_Date, Friday_Hours
What would the best way to achieve this be?
Thanks
SalesFORCE_enFORCEr
You are going the right way. Use <apex:pageBlockTable> or <apex:dataTable> or just create a html <table> inside <apex:repeat> in a visualforce page.