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
ramya1ramya1 

Wrapping Text Field in Apex column

 

I have an Issue regarding Displaying the name field in Pageblocktable column ....

 

The field is a text field with 80 characters...

If i have a record with name 60 characters,the name is getting Displayed in a single line...So that we need to Scroll the Table...

I want to Break the long names into different lines within the Column...so that the names gets fixed within the length..

 

<apex:column headerValue="Philips 12NC">
<a href="/{!a.Philips_12NC__r.id}" target="_Blank" >
<apex:smileysurprised:utputfield value="{!a.Philips_12NC__r.name}"/></a>
</apex:column>

 

I am trying to use Wrap functionality...But not getting proper output...

Can you Please help me to Solve this...

 

Thanks in Advance..

prakash_sfdcprakash_sfdc

p.test
{
width:11em;
word-wrap:break-word;
}

 

<apex:column headerValue="Philips 12NC">
<a href="/{!a.Philips_12NC__r.id}" target="_Blank" >

FieldName:<p class="test">{!a.Philips_12NC__r.name}</p></a>
</apex:column>

 

ramya1ramya1

Thanks for your Reply..

 

I used the Code..But it din't get worked...its Still Displaying the Field in the same line...

 

Eg : Consider The field name is

 

TestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTest

 

I want it to get displayed as

 

TestTestTestTestTestTestTestTestTestTest

TestTestTestTestTestTestTestTestTestTest

 

within the column...

 

 

 

 

prakash_sfdcprakash_sfdc

Can you please try this, <apex:column width="5%"/>