xpages Column icon not shown in Notes Client

224 Views Asked by At

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.

2

There are 2 best solutions below

0
On

One option you could try is that add your own HTML img tag something like this:

<img url="/.ibmxspres/domino/icons/vwicn___.gif">

In your case you would have to render this code specifically using a computed text.

<xp:text escape="false" disableTheme="true">
    <xp:this.value><![CDATA[#{javascript:<YOUR CODE>}]]></xp:this.value>
</xp:text>

I described this technique on my blog.

1
On

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.