function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Ethan HotzEthan Hotz 

Need help constructing complex data table

I'm trying to construct a table that tracks how many hours per week a developer works on each project they're assigned to. The collapsed view for each row should show the total amount of assigned hours per developer per week, but when expanded, the per-project breakdown should be shown. Here's a rough sketch of what I'm trying to do:
Developer1/1/20161/8/20161/15/20161/22/2016
User-added imageBob
30/4040/4020/400/40
User-added imageJohn
40/4040/4030/405/40
Project12030250
Project2201055

It seems like I might need a nested table for each row, with each nested table's column headers being the collapsed data? I'm not sure if that's at all possible with visualforce or not.

Oh, also, the weekly column headers need to be dynamically generated, and update week to week. I've started with that here:
<apex:pageBlock >
        <apex:pageBlockTable value="{!projectList}" var="project" >
          
            <apex:column headerValue="Developer">
                <apex:outputText>{!project.User__c}</apex:outputText>
            </apex:column>
            <apex:repeat var="week" value="{!formattedWeekList}">
            <apex:column headerValue="{!week}">
                
            </apex:column>
            </apex:repeat>
        </apex:pageBlockTable>
    </apex:pageBlock>
But I'm afraid I'm lost as to where to go from here. Any help in the right direction would be hugely appreciated.
 
VineetKumarVineetKumar
You are going in the right direction, explore on the use of apex repeats, renders and reRenders