You need to sign in to do that
Don't have an account?
sfdcdev.wordpress.com
Display of null values
Hello,
I am trying to disply values in a table. When one of the value is empty, it removes the line below it. Exactly the same problem we would get , when you are coding in HTML and the value returned from the backend is null.
I tried
<apex:outputText value="{!IF(aBilldetail.Proration_Phone__c==null,'  ',aBilldetail.Proration_Phone__c)}"
style="display: block;" />
but this doesnt work becuase SF coverts   to &,nbsp and treats it as a string.
Thanks,
GirishS
I am trying to disply values in a table. When one of the value is empty, it removes the line below it. Exactly the same problem we would get , when you are coding in HTML and the value returned from the backend is null.
I tried
<apex:outputText value="{!IF(aBilldetail.Proration_Phone__c==null,'  ',aBilldetail.Proration_Phone__c)}"
style="display: block;" />
but this doesnt work becuase SF coverts   to &,nbsp and treats it as a string.
Thanks,
GirishS
You can also use the ISNULL function instead of checking for null.
Might have some interations with the display:block; you have in there but it should get you started.
GirishS
Hello All
I am trying to display values in a page block table but whenever the value of the column is empty, it removes the line below it. I have tried to implement the code suggestions above but it does not work. The visualforce error that I get is Syntax error. Missing ')'.
Below is a copy of my code. Any help is appreciated. Thanks
<apex:page standardController="Account">
<apex:pageBlock title="Hello {!$User.FirstName}!">
You are viewing the {!account.name} account.
</apex:pageBlock>
<apex:detail relatedList="true" />
<apex:pageBlock title="Account Hierarchy" >
<apex:PageBlockTable value="{!Account.AccountPartnersTo}" var="cnt" >
<apex:column headervalue="Account" value="{!cnt.AccountFromId}"/>
<apex:column value="{!cnt.AccountFrom.Practice_ID__c}" rendered="{!NOT(ISNULL(cnt.AccountFrom.Practice_ID__c))}" />
<apex:column value="{!cnt.AccountFrom.Facility_ID__c}" rendered="{!NOT(ISNULL(cnt.AccountFrom.Facility_ID__c))}"/>
<apex:column value="{!nullValue(cnt.AccountFrom.Operational_Status__c,'')}"/>
<apex:column value="{!cnt.AccountFrom.Operational_Status__c}"/>
<apex:column value="{!cnt.AccountFrom.Holiday_Coverage__c}"/>
<apex:column value="{!cnt.AccountFrom.BillingCity}" />
<apex:column value="{!cnt.AccountFrom.BillingState}"/>
</apex:PageBlockTable>
</apex:pageBlock>
</apex:page>
Regardless the following alternate approach works fine:
Message Edited by dchasman on 07-02-2008 11:19 AM
Thanks,
Girish Suravajhula.
Yes Jill :smileyhappy:
Thank you all -- now it works :smileyhappy: