+ Start a Discussion
shan876shan876 

PageblockTable??

Hi :

I am trying to modify what I wrote due to what the users want to see...

Which is:

Weekending          Monday    Tuesday    Wednesday ...

     Date               Draw Net  Draw Net   Draw Net

So I tried colspan=2 when it gets to Monday but it is not working correctly:

<apex:page standardcontroller="SFDCFEED__c" extensions="SalesByAccountTableController" id="thePage" tabStyle="Account"> <apex:pageblock > <apex:pageBlockSection title="Sales Detail Information" collapsible="false" columns="1"> <apex:pageBlockTable value="{!fed}" var="account" border="1" cellspacing="0" cellpadding="0" style="font-size:11px; font-family:garamond;"> <apex:column headerValue="Weekending Date"><apex:outputField value="{!account.SIS_DATE__c}"/></apex:column> <apex:column headerValue="Monday"colspan="2">Draw <apex:outputField value="{!account.SIS_MON_DRAW__c}"/> <apex:outputField value="{!account.SIS_MON_NET__c}"/></apex:column> <apex:column > <apex:facet name="header">Tuesday<br/>Draw</apex:facet> <apex:outputText value="{!account.SIS_TUE_DRAW__c}"/> </apex:column>

Thank you for helping

Shan

Pooja05Pooja05

I am facing a similar issue. were you able to resolve it?

 

i want values to appears as follows

 

                                     Year 1                           Year2

                      Adjust Price    List Price    Adjust Price   List Price

Product 1              245             250           250             260

Product 2

 

 

 

Thanks,
Pooja

shan876shan876

No Not yet but Ihave to resolve it today.. So I'll keep you posted...

 

Thanks

Shan

Strictly IT

shan876shan876

Hi Pooja:

   The way I did this is:

  1. I created a component 

    <!-- Component: myaccounts--> <apex:component controller="tblsalesController"> <apex:attribute name="var" type="String" description="The variable to represent a single account in the iteration."/> <apex:repeat var="componentAccount" value="{!sList}"> <apex:componentBody > <apex:variable var="a" value="{!componentAccount}"/> <apex:outputPanel style="border:1px solid black;" layout="block"> {!componentAccount.name} </apex:outputPanel> </apex:componentBody> </apex:repeat> </apex:component>

     

  2. Then re-did my controller

  3. Create a new page such as this:

    <!-- Page: --> 
    <apex:page standardController="Account" showHeader="false" tabstyle="Account">
    <apex:pageblock >
    <table class="tableClass" id="thePage:theTable" border="1" cellpadding="5" cellspacing="1" width="100%">
    <thead>
    <tr bgcolor="#0066FF" style="font-family:courier new; color:white; font-size:10;text-align:center;" >
    <th>Weekending Date</th>
    <th colspan="2">Monday</th>
    <th colspan="2">Tuesday</th>
    <th colspan="2">Wednesday</th>
    <th colspan="2">Thursday</th>
    <th colspan="2">Friday</th>
    <th colspan="2">Saturday</th>
    <th colspan="2">Sunday</th>
    <th colspan="2">Sunday BD</th>
    <th colspan="2">Sunday Late</th>
    </tr>
    <tr bgcolor="#0066CC" style="font-family:courier new; color:white; font-size:10;text-align:center;">
    <th scope="col">-----</th>
    <th scope="col">Draw</th>
    <th scope="col">Net</th>
    <th scope="col">Draw</th>
    <th scope="col">Net</th>
    <th scope="col">Draw</th>
    <th scope="col">Net</th>
    <th scope="col">Draw</th>
    <th scope="col">Net</th>
    <th scope="col">Draw</th>
    <th scope="col">Net</th>
    <th scope="col">Draw</th>
    <th scope="col">Net</th>
    <th scope="col">Draw</th>
    <th scope="col">Net</th>
    <th scope="col">Draw</th>
    <th scope="col">Net</th>
    <th scope="col">Draw</th>
    <th scope="col">Net</th>
    </tr>
    </thead>
    <c:stable var="a">


    <tbody>
    <tr class="odd" style="font-family:courier new; color:black; font-size:10;text-align:center;">
    <td><apex:outputLink value="/{!a.Id}" target="_parent">
    <apex:outputField value="{!a.SIS_DATE__c}"/>
    </apex:outputLink></td>
    <td>{!a.SIS_MON_DRAW__c}</td>
    <td>{!a.SIS_MON_NET__c}</td>
    <td>{!a.SIS_TUE_DRAW__c}</td>
    <td>{!a.SIS_TUE_NET__c}</td>
    <td>{!a.SIS_WED_DRAW__c}</td>
    <td>{!a.SIS_WED_NET__c}</td>
    <td>{!a.SIS_THU_DRAW__c}</td>
    <td>{!a.SIS_THU_NET__c}</td>
    <td>{!a.SIS_FRI_DRAW__c}</td>
    <td>{!a.SIS_FRI_NET__c}</td>
    <td>{!a.True_Draw_Sat__c}</td>
    <td>{!a.SIS_SAT_NET__c}</td>
    <td>{!a.True_Draw_Sunday__c}</td>
    <td>{!a.SIS_SUN_NET__c}</td>
    <td>{!a.True_Draw_Early_Sunday__c}</td>
    <td>{!a.SIS_SUN_NET__c}</td>
    <td>{!a.True_Draw_Sunday__c}</td>
    <td>{!a.SIS_SUN_NET__c}</td>
    </tr>
    </tbody>


    </c:stable>
    </table>
    </apex:pageblock>
    </apex:page>

     I will explain it on my blog...But I hope it helps:

VF Made Easy

My Salesforce Code

********************if you have a blog that pertains to anything on IT stuff post your link Here Strictly IT - A Tech Directory