In view, I set var in All Properties to "rowVar". Code for viewColumn.
if (!rowVar.getDocument().getItemValue("NAPAKA").isEmpty()) { return "NAPAKA"}
else {return rowVar.getColumnValue("STANJE")};
And code for this.rowClasses:
if (!rowVar.getDocument().getItemValue("NAPAKA").isEmpty())
{return "hoverCls napakaBlue";}
else{return "hoverCls";}
Former works for view with no documents, but later throws exception. Why?