WebDbName in subform vs. explicitly in form

My developing website is on a server with a path as in hostname/path/site.nsf.

Is it unwise to use @WebDbName to handle the hostname/path part? It seems to work fine when I call it explicitly in a field, but say I have several formseach with several fields refering to the hostname/path–so I figure in the ubiquitous subform I will put one field to handle @WebDbName… but I have discovered that works only when there is no path between hostname and site.nsf.

What’s the best strategy?

Thank you!

Pi Rogue

Subject: WebDbName in subform vs. explicitly in form

No, @WebDbName will work fine on a subform regardless of the path length. If you’ve had a problem with it, it’s because you’re doing something else wrong. My standard subform includes:

AppBaseURL: a computed for display field with the formula “http://” + @GetHTTPHeader(“Host”) + “/” + @WebDbName

If you leave out the hostname portion, it’s easy to make a mistake when linking to other databases.