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
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