Home > Domino Tips > Administrator > Domino > Displaying a notes view by clicking on a row in a document
Domino Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

DOMINO

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


Zoubir Aichour
08.05.2002
Rating: --- (out of 5)


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


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



Code

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>.


Rate this Tip
To rate tips, you must be a member of SearchDomino.com.
Register now to start rating these tips. Log in if you are already a member.


Submit a Tip




Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



RELATED CONTENT
Domino
Four-step application rollout with Notes 8.0.1 Widgets
Running multiple instances of Lotus Notes
Monitoring the status of external processes on a Lotus Domino server
How to turn off the message recall feature in Lotus Notes 8
What is Notes 8.5's DAOS (Domino Attachment and Object Storage) feature?
SaaS and collaboration set the stage at Lotusphere
Top 10 Lotus Notes/Domino administration tips of 2008
How to upgrade to Lotus Notes 8 and retain Lotus Notes 7
Five Domino domain default server settings you should change and why
How DirLint verifies data in Lotus Notes Domino 8 directories

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary

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.



Domino & Lotus Notes Security Solutions: Authentication, Antispam, Encryption and Antivirus
HomeTopicsITKnowledge ExchangeTipsAsk the ExpertsMultimediaWhite PapersDomino IT Downloads
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 1999 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts