This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal



Jul 2, 2011, 5:50 AM
2 Posts

Displaying Icons in the View Column

  • Category: Other
  • Platform: All
  • Release: 8.5.1
  • Role: Developer
  • Tags: view icons
  • Replies: 2
hey,
I want to display an icon in the view column based on the condition: 
 
@If(@Attachments;5;0) 
 
Could anyone guide me as to how to get it displayed based on a formula rather than write code: I got this tip from somewhere, but on trying it , it does work but the Link refuses to open.
 
Thanks for your help. 

var url:XSPUrl = new XSPUrl(database.getHttpURL());

var idx = viewEntry.getColumnValues().get(0);

//var idx = 0;

var pics = "";

if (idx==5)

{

pics += "00"

var path = "";

url.setPath(path);

url.removeAllParameters()

return url.getPath()

}

//else if (idx ==0)

//pics +=""

 
Jul 4, 2011, 10:15 AM
5 Posts
Re: Displaying Icons in the View Column
 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 ""
                        }
                   
Jul 5, 2011, 1:13 PM
2 Posts
Re: Displaying Icons in the View Column
Hi Roman,
 
Thanks for the reply. I tried doing this but the link doesnt open when I click it from the view. If I remove this attachment formula it opens. 
 
I am trying to create a XPage of a view from an existing database with old documents. I dont have an Xpage related to this view.
 
My question is: DO we need to recreate the form totally new in XPage to get the view to display properly? Doesnt it work with an existing database created before.

This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal