Hi, I have done similar tasks
This formula must be in column view Lotus client:
@If( @Attachments; 5; 0 )
Then do the required icon and save it in the resource base, for example 5.gif
Next xPages viewPanel tab in the properties of "data" -> "var" write value "RowValue" and display type of column in viewPanel select content type "html", select data computed value and place the following code:
var value = RowValue.getColumnValue("$8") // "$8" - column with a formula in view Lotus client:@If( @Attachments; 5; 0 )
if(value == "5" ){
return "<img src='5.gif' />"
}else{
return ""
}