• Browse Blogs
  • My Blog
  • My Updates

+Tags Get help with tags?

  • View as cloud  | list

+ Similar Blogs

photo

Patrick Picar...

62 Entries |  Patrick Picard
Updated 
RatingsRatings 2     CommentsComments 112
photo

Lotus Nut

111 Entries |  Chris Whisonant
Updated 
RatingsRatings 23     CommentsComments 157
photo

TexasSwede

109 Entries |  Karl-Henry Martinsso...
Updated 
No RatingsRatings 0     CommentsComments 94
photo

Urs Meli

42 Entries |  Urs Meli
Updated 
No RatingsRatings 0     CommentsComments 48
photo

Uh Clem's Adm...

54 Entries |  Chris Mobley
Updated 
RatingsRatings 8     CommentsComments 55

+ Bookmarks

+ Blog Authors  

1 - 1 of 1
  • Previous
  • Next
  • Page   1

Did You Know - 1: Dynamic Urls for Notes

John Jardin |   | Tags:  urls links web lotus hotspots | Comments (2)  |  Visits (336)
This morning, while training a few developers, I stumbled upon a piece of functionality I would've never thought existed in notes:

I was teaching the pro's and con's of using qualified vs relative vs dynamic urls, and made good mention of @WebDbName and it's benefits. In my example, I wanted to show how a url would look in order to "compose a form" when creating hotspots in Forms or Pages. Below is an example of how this could be done, from worst to best:

QUALIFIED URL = "http://www.domainname.com/ApplicationFolder/DatabaseName.nsf/FormAliasName?OpenForm"

RELATIVE URL = "/ApplicationFolder/DatabaseName.nsf/FormAliasName?OpenForm"

DYNAMIC URL = "/" + @WebDbName + "/FormAliasName?OpenForm"

When one of the developers asked me what would happen if just adding the "/FormAliasName?OpenForm", leaving out the beginning "/" and @WebDbName, I laughed and said that the url returned will be dodgy and incorrect. Been a person who believes in visually proving a point, I changed the code in my hotspot, and added the following url, "FormAliasName?OpenForm", not realizing that I accidentally left out the "/" before the "FormAliasName". Low and behold, the result was a fully qualified url where the domain, filepath and file name were dynamically generated by Notes itself, without any need of using @WebDbName.


BOTTOM LINE:


"FormAliasName?OpenForm" - WORKS and REPLACES "/" + @WebDbName + "/FormAliasName?OpenForm"

"/FormAliasName?OpenForm" - DOESN'T WORK


N.B. The Above example assumes that you are composing a Form on the current server, in the current database.


Cheers
John
No RatingsRatings 0

  • Previous
  • Next
Jump to page of 1
Skip to main content link. Accesskey S
IBM Lotus Connections Help Tools About