You need to sign in to do that
Don't have an account?
Chanagan Sakulteera
How to set this table by apex
Hi all,
I want to set this is table in vf page by apex code. How to set ??
this is vf page me.
<apex:page standardController="Product_Service__c" extensions="CostCalculation2Extention" >
<apex:sectionHeader Title="Cost Calculation" subtitle="{!theProduct.Name}"/>
<apex:form >
<apex:pageBlock title="Cost Calculator">
<table border="1">
<tr>
<th>No. of Pax</th>
<th colspan="2" align="center">A</th>
<th>B</th>
<th colspan="4" align="center">C1</th>
<th colspan="4" align="center">C2</th>
<th colspan="4" align="center">C3</th>
<th colspan="4" align="center">C4</th>
<th colspan="4" align="center">C5</th>
<th colspan="4" align="center">C5</th>
<th colspan="2" align="center">E</th>
<th colspan="3" align="center">G</th>
</tr>
<tr>
<td><apex:commandButton value="Add Row"/></td>
<td>International Flight</td>
<td>Domestic Flight</td>
<td></td>
<td>C1.1</td>
<td>C1.2</td>
<td>C1.3</td>
<td>C1.4</td>
<td>C2.1</td>
<td>C2.2</td>
<td>C2.3</td>
<td>C2.4</td>
<td>C3.1</td>
<td>C3.2</td>
<td>C3.3</td>
<td>C3.4</td>
<td>C4.1</td>
<td>C4.2</td>
<td>C4.3</td>
<td>C4.4</td>
<td>C5.1</td>
<td>C5.2</td>
<td>C5.3</td>
<td>C5.4</td>
<td>C6.1</td>
<td>C6.2</td>
<td>C6.3</td>
<td>C6.4</td>
<td>E1.1</td>
<td>E2.2</td>
<td>Sales</td>
<td>Operation</td>
<td>Others</td>
</tr>
</table>
</apex:pageBlock>
</apex:form>
</apex:page>
Thank you.
I want to set this is table in vf page by apex code. How to set ??
this is vf page me.
<apex:page standardController="Product_Service__c" extensions="CostCalculation2Extention" >
<apex:sectionHeader Title="Cost Calculation" subtitle="{!theProduct.Name}"/>
<apex:form >
<apex:pageBlock title="Cost Calculator">
<table border="1">
<tr>
<th>No. of Pax</th>
<th colspan="2" align="center">A</th>
<th>B</th>
<th colspan="4" align="center">C1</th>
<th colspan="4" align="center">C2</th>
<th colspan="4" align="center">C3</th>
<th colspan="4" align="center">C4</th>
<th colspan="4" align="center">C5</th>
<th colspan="4" align="center">C5</th>
<th colspan="2" align="center">E</th>
<th colspan="3" align="center">G</th>
</tr>
<tr>
<td><apex:commandButton value="Add Row"/></td>
<td>International Flight</td>
<td>Domestic Flight</td>
<td></td>
<td>C1.1</td>
<td>C1.2</td>
<td>C1.3</td>
<td>C1.4</td>
<td>C2.1</td>
<td>C2.2</td>
<td>C2.3</td>
<td>C2.4</td>
<td>C3.1</td>
<td>C3.2</td>
<td>C3.3</td>
<td>C3.4</td>
<td>C4.1</td>
<td>C4.2</td>
<td>C4.3</td>
<td>C4.4</td>
<td>C5.1</td>
<td>C5.2</td>
<td>C5.3</td>
<td>C5.4</td>
<td>C6.1</td>
<td>C6.2</td>
<td>C6.3</td>
<td>C6.4</td>
<td>E1.1</td>
<td>E2.2</td>
<td>Sales</td>
<td>Operation</td>
<td>Others</td>
</tr>
</table>
</apex:pageBlock>
</apex:form>
</apex:page>
Thank you.
try this sample code
is this what you want?