You need to sign in to do that
Don't have an account?
Bill Woodson
line breaks in pageblocktable column
Hello,
I am retrieving notes which have line breaks in the body. I have created a custom extension and pageblocktable to display the note data including the body but the line breaks are ignored in the body column of the table, how do I get the column to recognize the line breaks properly?
Thanks!
I am retrieving notes which have line breaks in the body. I have created a custom extension and pageblocktable to display the note data including the body but the line breaks are ignored in the body column of the table, how do I get the column to recognize the line breaks properly?
Thanks!
All Answers
<apex:page standardController="Account">
<apex:pageBlock>
<apex:pageBlockSection columns="1">
<apex:pageBlockTable value="{!Account.Notes}" var="n">
<apex:column value="{!n.LastModifiedDate}"/>
<apex:column value="{!n.CreatedById}"/>
<apex:column value="{!n.Body}"/>
</apex:pageBlockTable>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:page>
Thank you kevin too for your help!