Alphabet View Index For Website
On a lot of websites which have lists, you see the alphabet off to the side and
clicking on a letter will take you to the first element in the list starting
with that letter. This is much more user friendly than the default view
navigation links provided by Domino. You could write out the alphabet, and make
each letter a URL link into a view using StartKey to start at the proper
position, but that's time consuming and what happens if there is no entry
starting with that letter? Try putting this code into computed text to generate
the alphabet on the fly, only including letters that are present in the list:
(We have this as the left frame of a frameset, thus the 'target='. I'm sure it
would work just as well simply at the top of a page without the 'target='.)
ExistingLetters := @Unique( @Left( @DbColumn( "":""; "":""; "ViewName"; 1 ); 1
) );
@Implode( "<a href=\"ViewName?openview&startkey=" + ExistingLetters + "\"
target=\"Main\">" + ExistingLetters + "</a>" )
Start the conversation
0 comments