+ Start a Discussion
harshasfdcharshasfdc 

To add comma to column value in pageblocktable

Hi All,

 

i am displaying data using pageblocktable. i just want to add comma to column values which are displaying  how can i achive this .

 

Thanks,

Harsha

Best Answer chosen by Admin (Salesforce Developers) 
harshasfdcharshasfdc

Hi All,

 

Thanks for the reply i just solved it by using <apex:outputtext>

 

 

 

Thanks,

Harsha

All Answers

AshishyadavAshishyadav

simply put comma  example

<apex:column value="{!item.name},{!item.type}"/>

 

avijchakavijchak

Public separator {get;set;} {separator = ',';}

 

 <apex:Column value = "{!item.value1} {!separator} {item.value2} "

 

@vijit Capgemini Developer

ShahTheTrainerShahTheTrainer
<apex:column value="{!c.LastName}, {!c.FirstName}" />

 

 

if you are trying to put the comma in the column header

 

<apex:column headerValue="Last, Name" value="{!c.FullName}" />

 

harshasfdcharshasfdc

Hi All,

 

Thanks for the reply i just solved it by using <apex:outputtext>

 

 

 

Thanks,

Harsha

This was selected as the best answer