There is an application which runs both on web and Notes Client.
I noticed that some icons are showed OK in my view panels when the app is running on browser, but there are 'invisible' ( not showing ) when the app is running inside the Notes Client.
My column icon code:
....
var iconNumber = parseInt(rowData.getColumnValue("$11")); // Programmatic name of the column
if ( formName == "fmTest1") {
"/.ibmxspres/domino/icons/vwicn" + (iconNumber > 99 ? "" : "0") + iconNumber + ".gif"}
else if ( formName == "fmTest2" )
{ ""}}}]]></xp:this.iconSrc>
<xp:viewColumnHeader id="viewColumnHeader3"></xp:viewColumnHeader>
</xp:viewColumn>
Should I use other approach? Thanks for your time.
Try using @ViewIconUrl(), which is a new SSJS @Function with Ext Lib and R9 http://www.intec.co.uk/new-notes-9-functions/.
However, from this question, the icons may not be available to XPiNC XPiNC view icons. I don't have a Notes Client only install to check.