You need to sign in to do that
Don't have an account?
joemur
problem with apex repeat causing new row
I use currency formatting within a table e.g.,
<td style="width:170px">
<apex:outputText value="${0, number, ###,###,##0.00}">
<apex:param value="{!Margin}" />
</apex:outputText>
</td>
and works fine but when I do the same thing within a repeat the output shows in the next row
<apex:pageBlockSection columns="1" >
<apex:repeat id="vRepeat" value="{!SelectedVendors}" var="vWrapped" >
<table border="1" width="100%">
<tr >
<td style="font-weight:bold;width:170px">
INVOICE AMT:
</td>
<td colspan="5" style="font-weight:normal;width:170px">
<apex:outputText value="${0, number, ###,###,##0.00}">
<apex:param value="{!vWrapped.Amount__c}" />
</apex:outputText>
</td>
</tr>
and I do not understand why. Any ideas how i can fix this?
<td style="width:170px">
<apex:outputText value="${0, number, ###,###,##0.00}">
<apex:param value="{!Margin}" />
</apex:outputText>
</td>
and works fine but when I do the same thing within a repeat the output shows in the next row
<apex:pageBlockSection columns="1" >
<apex:repeat id="vRepeat" value="{!SelectedVendors}" var="vWrapped" >
<table border="1" width="100%">
<tr >
<td style="font-weight:bold;width:170px">
INVOICE AMT:
</td>
<td colspan="5" style="font-weight:normal;width:170px">
<apex:outputText value="${0, number, ###,###,##0.00}">
<apex:param value="{!vWrapped.Amount__c}" />
</apex:outputText>
</td>
</tr>
and I do not understand why. Any ideas how i can fix this?
joemur
Figured out that changing from Apex:pageblock to <apex:panelGroup fixed my problem