Blogs

  • Browse Blogs
  • My Blog
  • My Updates

Tags Help

  • View as cloud  | list

Similar Entries

photo

IT Development at MC...

Blog:  David Clover
David A Clover
Updated 
No Ratings 0     No Comments 0
photo

Just how "RAD" is No...

Blog:  Uh Clem's Adm...
Chris Mobley
Updated 
No Ratings 0     Comments 1
photo

Is Notes Programming...

Blog:  .Domino Frame...
Peter Presnell
Updated 
No Ratings 0     Comments 2
photo

SnTT: clickable URL'...

Blog:  Yellow is the...
Tim Tripcony
Updated 
No Ratings 0     No Comments 0
photo

Simple but effective...

Blog:  TexasSwede
Karl-Henry Martinsso...
Updated 
No Ratings 0     No Comments 0

TexasSwede

Blog Authors:  Karl-Henry Martinsson  

Previous |  Main  | Next

SNTT - Custom tabs in Notes client

Karl-Henry Martinsson  |    |  Tags:  sntt development show-and-tell-thursday  |  Comments (4)

 We all know that Notes let us create tabbed tables. But you have limits to how nice you can create the tabs.

In an application I am working on, I wanted full control of the tabs, and I found out it was actually pretty easy to create my own tabs. I just used a computed background, something I actually never used before.

By the way, I stoleborrowed the graphics from Yahoo Mail for now, until I get the final graphics created...

 

The application displays information about the (insurance) claim selected in the drop-down box. Each claim has one or more claimants (affected people/parties), and I display them in the tabbed section. You can see the tabs in the screenshot below.

 

What I simply do is to keep track of the currently selected claimant, the number of claimants, and then I built a table with 3 columns in the first row and one merged cell as the second row.

In the center cell in the first row, I set the background to the "active colored" (lighter) tab. I use @Formulas to set the background in the two other cells:

@If( @TextToNumber(CurrentClaimantNumber) > 1; "CCdb_InactiveTab.gif"; "" )

and

@If( @TextToNumber(CurrentClaimantNumber) < @TextToNumber(LNPClaimantCount); "CCdb_InactiveTab.gif"; "" )

 

The inactive tab is the darker one. Then it is just a question about writing code that trigger when the lables (computed-for-display fields) are clicked, to update the current claimant value, load the claimant data and refresh the form.

 

I hope you get some inspiration from this. Oh, and this is all Notes 5...

Comments

1 Kevin Pettitt      Permalink How did you know I needed this? :-)

2 Karl-Henry Martinsson      Permalink @Kevin: Just had a feeling that I was not the only one that could use this... And I realized that if it was such a cool discovery for me to realize that I could compute background images in a table cell, perhaps others also would find it useful...
If you need/want the form, I can isolate the design and send you a database...

3 Chris Toohey      Permalink Hey Karl-Henry,

Great stuff! We went with a different route with the same principle:

http://www.dominoguru.com/pages/contextsensitive_tabbednavigation.html

I think the one problem that we ran into with the formula-based approach was read-only access to documents. Not too sure if you're approach would actually address that or not - if so, AWESOME!

-Chris

4 Karl-Henry Martinsson      Permalink @Chris,

I solved it by opening a separate window with an edit form, where only the editable fields can be modified.
A "change request" is created, with old and new values listed. This one is sent to a manager who approves the change to be merged into the database where the data is actually stored.
The changes can be approved/denied ona per-field basis...


Previous |  Main  | Next
Skip to main content link. Accesskey S
IBM Lotus Connections Help Tools About

Tags

A tag is a keyword that is used to categorize an entry. To view the entries with a particular tag, click a tag name or enter a tag in the box.
The tag cloud indicates the frequency of tag use. Popular tags appear darkest. The slider control adjusts how many tags are displayed in the tag cloud.