You need to sign in to do that
Don't have an account?
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" >
<apexutputfield 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..
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>
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...
Can you please try this, <apex:column width="5%"/>