Home > Domino Tips > Developer > HTML > View generated columns
Domino Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

HTML

View generated columns


Ronald De Heer
05.06.2002
Rating: -3.00- (out of 5)


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


As you probably know, when you use expandable views on the Web, the columns are set to the width dynamically by the content of the column, which means that all headers of the columns are show as one string. (ugly!) By using HTML columns generated by the view, we can eliminate this and set our own start width. You can even set the maximum width when you expand this method with the following:

Value:=@Left(FIELD1;20)+Div+@Left(FIELD2;20)+div+@Left(FIELD3;20)+div+@
Left(FIELD4;20)+div+@Left(FIELD5;20)+div+@Left(FIELD6;20)+div+@Left(FIELD7;20);

Use a HIDDEN first column when you want to sort the content in a NONE categorized view, or use a First categorized column which is not hidden and don't show this field with the function.

Replace the fieldnames in the values string in the example with your fieldnames and define in the Width string the width of the columns you want to use.

Code

DB:="/"+@ReplaceSubstring(@Subset(@Name([CN];@DbName);-
1);"";"/")+"/"; Div:="##!!##"; Value:=FIELD1+Div+FIELD2+div+FIELD3+div+FIELD4+div+FIELD5+div+FIELD6+div+FIELD7; Width:="50"+div+"30"+div+"120"+div+"60"+div+"60"+div+"60"+div+"60"; COLUMN1:="[<TD NOWRAP WIDTH="+@Word(Width;div;1)+"><FONT SIZE=2 FACE="Verdana"><A
HREF=""+DB+"0/"+@Text(@DocumentUniqueID)+"?OpenDocument"+"">"+@Word(Value;div;1)+"</A></FONT></TD>]"; COLUMN2:="[<TD NOWRAP WIDTH="+@Word(Width;div;2)+"><FONT SIZE=2 FACE="Verdana"><A
HREF=""+DB+"0/"+@Text(@DocumentUniqueID)+"?OpenDocument"+"">"+@Word(Value;div;2)+"</A></FONT></TD>]"; COLUMN3:="[<TD NOWRAP WIDTH="+@Word(Width;div;3)+"><FONT SIZE=2 FACE="Verdana"><A
HREF=""+DB+"0/"+@Text(@DocumentUniqueID)+"?OpenDocument"+"">"+@Word(Value;div;3)+"</A></FONT></TD>]"; COLUMN4:="[<TD NOWRAP WIDTH="+@Word(Width;div;4)+"><FONT SIZE=2 FACE="Verdana"><A
HREF=""+DB+"0/"+@Text(@DocumentUniqueID)+"?OpenDocument"+"">"+@Word(Value;div;4)+"</A></FONT></TD>]"; COLUMN5:="[<TD NOWRAP WIDTH="+@Word(Width;div;5)+"><FONT SIZE=2 FACE="Verdana"><A
HREF=""+DB+"0/"+@Text(@DocumentUniqueID)+"?OpenDocument"+"">"+@Word(Value;div;5)+"</A></FONT></TD>]"; COLUMN6:="[<TD NOWRAP WIDTH="+@Word(Width;div;6)+"><FONT SIZE=2 FACE="Verdana"><A
HREF=""+DB+"0/"+@Text(@DocumentUniqueID)+"?OpenDocument"+"">"+@Word(Value;div;6)+"</A></FONT></TD>]"; COLUMN7:="[<TD NOWRAP WIDTH="+@Word(Width;div;7)+"><FONT SIZE=2 FACE="Verdana"><A
HREF=""+DB+"0/"+@Text(@DocumentUniqueID)+"?OpenDocument"+"">"+@Word(Value;div;7)+"</A></FONT></TD>]"; Column1+Column2+Column3+Column4+Column5+Column6+Column7

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.




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



RELATED CONTENT
HTML
Create a dynamic fluid image gallery with Lotus Notes views
Write HTML and JavaScript in Notes view rows and columns on the Web
Open Lotus Notes documents in Microsoft Word without coding
Trap an attachment path via the Domino file upload control field
A bevy of Notes/Domino development tips
Styling Lotus Domino Web fields
How to convert Microsoft Word or Microsoft Excel documents to HTML
An easier way to view multiple columns on the Web
How to print a form in landscape format automatically
Tip contest winner: Hide view column while being able to sort it

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