Displaying a notes view by clicking on a row in a document

This tip describes hoe to display a notes view by clicking on a row in a document.

This is a cool way to diplay a notes view (ie5). To open a document the user must click twice on the corresponding row.


 1- In the first column of the view put this formula : iconb := "<img src="/icons/vwicn012.gif" border=0>"; iconc := "<img src="/icons/vwicn164" border=0>"; icon := @If (EtatRc = "Closed"; iconc; @TextToNumber(Status)>=2; iconb;""); db := "/" + @ReplaceSubstring(@ReplaceSubstring(@Subset(@DbName; -1);" ";"+");"";"/") ; url:=db+"/IDDOC/"+ @Text(@DocumentUniqueID) + "?OpenDocument"; "[<tr onmouseover="mouseOver(this,'#FFFFFF');" style="CURSOR: default" onmouseout="mouseOut(this,'efefef');" onclick= "document.location.href='"+URL+"'" bgColor="#efefef" height="21"><td width=1>" + icon + "</td>" The Title of this column is : [<tr bgcolor=#CCCCCC><td bgcolor=#ffffff> then create columns of each field you want to display. the last column must contain this formula : "</tr>]" and it's title : </td></tr>] 2- Create a page and name it roll.js :(click on consider the content of the page as code) and put this js code in it : function mouseOver(src,colorOver) { if (!src.contains(event.fromElement)) { src.style.cursor = 'hand'; src.bgColor = colorOver; } } function mouseOut(src,colorIn) { if (!src.contains(event.toElement)) { src.style.cursor = 'default'; src.bgColor = colorIn; } } 3- in the $$ViewTemplateDefault, in Title HTML content put this code : "<script language="JavaScript" src="roll.js"></script>.
This was last published in August 2002

Dig Deeper on Domino Resources - Part 3

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.

-ADS BY GOOGLE

SearchWindowsServer

Search400

  • iSeries tutorials

    Search400.com's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...

SearchEnterpriseLinux

SearchDataCenter

SearchExchange

SearchContentManagement

Close