I need to know how to produce row colours dependent upon certain values within the documents in a view. The view is inside a viewPanel in a custom control.
I can produce the alternate row colours using Mark Hughes’ method, and I see methods for using tables or repeat controls, but I need to be able to do this in a viewPanel. In regular Lotus Domino views we could just use a hidden column, but I’ve tried that, as well as other methods and can’t seem to get there.
Currently, I’ve been trying to put the code in the rowClasses property because which area of the CSS I want to call is dependent upon what I return to that property, but I mustn’t be getting to the information correctly, as I keep getting errors that the items are null. I’ve tried putting the values in columns in the view and using getColumnValue, thinking I could access this through the NotexXspViewEntry, but no joy so far.
If anyone knows how to do this, or has any suggestions, this would be much appreciated.
Thanks!
Subject: rowData
In a view it is possible to give the view a ‘var’-value in the properties. It is de last item in the data section.If rowData is set, you get use rowData.getUnivesalID() to get the universal ID from the chosen document in the view.
I suppose that you can use the same for your function.
Subject: here is the solution
varRowView.getColumnValue(“Header Name of your View in Lotus Notes”)
Where varRowView is the var associated to your view Data Source.
You can retrieve even the whole document with
varRowView.getDocument()
Subject: Could Categorized Column Affect This?
Hi Vinc!
Thank you so much, but I still can’t get it to work. I can neither return the document nor any of the columns.
I just thought of something though - could the fact that I have two categorized columns affect this? Or does the system know enough to get a row with a document in it?
As well, some of these documents are responses - could that affect it at all?
Subject: I think you can use varRowView.isCategorized() to find out…
Subject: Still Doesn’t Work - But Thanks
Thanks for the suggestion David, but that didn’t work either.
Subject: some websites
Did you read those web pages :
http://www-10.lotus.com/ldd/ddwiki.nsf/dx/WorkingWithViewControlsComputedColumn.htm
and
http://www.lotus911.com/nathan/escape.nsf/d6plinks/NTFN-7FRG79
If it doesnt work try with a very simple view just to know if you do it by the right way.