I have a Navigator that is accessed via the web. On the Navigator, I have a rectangle object which uses an Open URL action to open a form within the database. The URL contains the actual server address. However, this database needs to be on several servers, so hardcoding the address of the server in the URL will not work. Does anyone know of a way to code the URL such that it will return the address and path of the database, of the server where it’s located. I have used this technique within buttons on forms with formulas like @Subset(@DbName;-1) ect… but this does not seem to work within the Navigator using either a formula or within the URL. Does anyone know if this can be done?THANK YOU!!
Subject: Hard coded server address in URL, in Navigator
Make sure the final url returned by the formula is just a partial url i.e. it begins from the dbname and not the servername
e.g.
full url - http://myserver.com/mynsf/…
return url - mynsf/…
do not build in the http://servername portion
ALSO, look at the new @formula @webdbname
Subject: RE: Hard coded server address in URL, in Navigator
I’m completly lost now. Now it returns what’s in the Launch option in the database properties, which happens to be the About Document when launched in a browser.
Subject: Hard coded server address in URL, in Navigator
Ken, If you have DNS setup in your organization can you not use the full url of the db?
Such as:
http://server.domain.org/dbname.nsf?open
Shawn
Subject: RE: Hard coded server address in URL, in Navigator
Shawn, thanks for the reply. Unfortunately we don’t use DNS here but it would not fix my problem if we did. I need the same database on multiple servers. Typical Notes stuff right? You would think but I can’t get this to work. I can’t believe that Notes would be so lacking in such fundamental function. Here is my problem in detail:There is a navigator that has a Rectangle Hotspot that when clicked should open a URL and open a form. In the Designer pane for the Hotspot, you can choose either a URL, Formula, or LotusScript. I didn’t know which to use so I tried it with a Formula and then with a URL. Both failed. I used a formula from a button from a form that works great in another part of the database. THis is the formula, it simply opens up a form:
db:+ @Subset(@DbName;-1);@URLOpen(“/”+db+"PrefByUser?openForm. It is failing in the formula in the Navigator HotSPot. When you click the HotSpot form the Web, it uses the Launch option from the properties of the database which happens to be the About Document. I have been trying to get this to work for three days. I am about to explode. Please help if you can. Thanks!