Q
Problem solve Get help with specific problems with your technologies, process and projects.

Can I program view column headings in Notes DB v5 and above?

Is there a way to program view column headings in Notes DB v5 or above? I currently have a heading called "WK1." I would like this, though, to show this week's Monday date each time the view is accessed. The column is a totals column, so I don't want it as a doc in the view.
There's no way to write a "column heading formula." However, in Notes 6, the NotesViewColumn class lets you assign the Title property. So, you could write an agent that executes weekly (say on Sunday) and updates the title to the value you want for that week. Something like this:

Set view = db.GetView("viewName") 
Set column = view.Columns(0) 
column.Title = Cstr(Today+1) 
view.Refresh ' so that the first person to open the
 view will not have
to wait for it to be re-indexed.

Or, if this is a Domino Web application and the view is displayed with HTML, then you can use HTML pass-thru in the view column header to call a JavaScript function to fill in the desired text. For example, the column header would be something like this:

[<SCRIPT>dynamicColumnHeader
( )</SCRIPT>] 

The dynamicColumnHeader function would calculate the desired text and use document.write to add it to the page.

Do you have comments on this Ask the Expert Q&A? Let us know.

This was last published in March 2004

Dig Deeper on HTML for Lotus Notes Domino

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

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

SearchDataCenter

SearchContentManagement

Close