Hi on my VF page I want to render output panal on the based of if the key exist or not. I wan to check if the key exist or not. While checking I am getting an error that
Map key result__c not found in map
My code to check the key and render the output panel
<apex:repeat value="{!visitFieldNames}" var="vfld">
<apex:variable var="vfldDesc" value="{!visitFieldDescMap[vfld]}" />
<apex:outputPanel rendered="{!if(visitRecord[vfld] != null, true, false)}">
<option value="{!visitRecord[vfld]}" selected="selected">{!visitRecord[vfld]}</option>
</apex:outputPanel>
Why I am getting error I also tried by using
rendered="{!if(visitRecord != null, true, false)}"
But still I am getting the same error. Please guide me how can I achieve it.