« Type ahead gone ... what do I do now? | Main| Is Normalization relgion? »

Notes Design basics 1: Aliases

Category
Bookmark : del.icio.us  Technorati  Digg This  Add To Furl  Add To YahooMyWeb  Add To Reddit  Add To NewsVine 


There is often a lot of talk around the complicated parts of the Lotus Notes - agents, scripting, js frameworks, OOP etc.  So I thought I'd try and run a few posts on the absolute basics of Lotus Notes development (and for the cynics amongst you, yes your right, it makes for an easy blog topic ).  

So since its the absolute basics I'll probably avoid anything relating to serious web design and maybe only run into LotusScript later on.   And your more than welcome to shoot it to bits as well.

So number 1..

Always use aliases on design elements and reference the alias in your design - not the actual name. You can then change your view names without changing references in dblookups, change form names without changing view selection criteria.  If you don't have tools like Teamstudio's Configurator this is damned useful.

Its often good to name the aliases with that prefix relative to the design element, e.g. viewPeople / vwPeople / frmAccount, particularly as this makes every alias within the application unique.

Despite saying I'll avoid web design .. I'll break that rule straight way:  Aliases allow you to refer to the design elements via URLs without a URL command as long as you name the aliases uniquely within the database (sorry - slap my wrist) - application.  So http;//www.mysite.com/somedb.nsf/frmCompleteMe will open the form frmCompleteMe without using ?OpenForm on the end.

The only place I might break this rule is when importing documents from applications where you are then going to use a copy of the other applications form design .. e.g. the Memo form in the mail file doesn't use an alias.  But equally you could always change the form name on the document and use an alias.

1 down .. next time, fields.

Comments

Gravatar Image1 - if you wanted a regular looking url you can set the alias like so.

Complete Form | completeme | completeme.html |frmCompleteMe

and the use

http//www.mysite.com/somedb.nsf/completeme
http//www.mysite.com/somedb.nsf/completeme.html


You can reference any alias, and you can have as many as you like. The frmCompleteMe is what gets stamped in the 'form' field.




Gravatar Image2 - I totally agree, aliases are very important in DB design, and even more important is you have to translate the database into another language.

Post A Comment

:-D:-o:-p:-x:-(:-):-\:angry::cool::cry::emb::grin::huh::laugh::lips::rolleyes:;-)

Welcome ..

View Scott Cochrane's profile on LinkedIn

My IdeaJams

tag cloud

MiscLinks

Googles

  • No Search Referers

OpenNTF

Poweredby

Domino BlogSphere
Version 3.0.1 Beta 9