Tip

Displaying 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 first published in August 2002

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
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
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

Disclaimer: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.