+ Start a Discussion
divya1234divya1234 

the value null is not valid for operator >=

error is in <apex:outputPanel rendered="{!IF(finance__c.Income__c >=0,true,false)}"/> in <outputpanel> component .

I am trying to first check null values for the field to void the error,but i am stuck

1. first not sure whether we can check two if condition in output panel
2. <apex:outputText value=" to " rendered="{!IF(ISBLANK(finance__c.Income__c) , false , true)}" adding this line before  <apex:outputPanel rendered="{!IF(finance__c.Income__c >=0,true,false)}"/> but no luck

please help me with the solution

 
SandhyaSandhya (Salesforce Developers) 
Hi,

You may try  NOT(ISNULL(finance__c.Income__c)) use ISNULL instead of ISBLANK

Please mark it as solved if my reply was helpful, it will make it available
for others as a proper solution.

Best Regards,
​Sandhya
 
devedeve
Hi Divya,

If you are trying to get child relation field then use finance__r.Income__c in place of finance__c.Income__c.

 <apex:outputPanel rendered="{!IF(finance__r.Income__c >=0,true,false)}"/>
divya1234divya1234
you mean like this <apex:outputPanel rendered="{!IF(NOT(ISNULL(finance__c.Income__c))) >=0,true,false)}">

not working:)
divya1234divya1234
Hi thanks for the reply .@deve (mailto:.@deve) i have t check whether field is null and f condition also
 
divya1234divya1234
<apex:outputPanel rendered="{!IF(finance__c.Income__cc >=0,true,false)}" >=0,true,false)}"> this is my existig staement what can i add to check the value is not null
 
devedeve
Please try this:
<apex:outputPanel rendered="{!IF(AND(finance__c.Income__cc != null, finance__c.Income__cc>=0)),true,false)}">
divya1234divya1234
<apex:pageBlockSectionItem> may have no more than 2 child components
devedeve
What the error you are getting now