I have a computed column image ( icon ):
<xp:this.iconSrc><![CDATA[#{javascript:var formName = rowData.getDocument().getItemValueString("Form");
var iconNumber = parseInt(rowData.getColumnValue("$8"));
if ( formName == "fmCompanie") {
"/.ibmxspres/domino/icons/vwicn" + (iconNumber > 99 ? "" : "0") + iconNumber + ".gif"}
else if ( formName == "fmPersContact" )
{ "" }}]]></xp:this.iconSrc>
The problem is when I want to open a document listed from my viewPanel, I get the following error: Exception occurred calling method NotesXspViewEntry.getDocument() null
at the following line of code:
var formName = rowData.getDocument().getItemValueString("Form");