@webdbname curious behaviour

I’ve noticed some curious behaviour with @webdbname that I don’t quite understand.

If I create a view and populate a column with this formula:

“<a href="/” + @WebDbName + “/0/” + @Text(@DocumentUniqueID) + “">Link”

I get this as a result:

Link

Which is reasonable. However, if I change the column formula to this - to open a form, for example:

“<a href="/” + @WebDbName + “/” + “MainWebForm?OpenForm” + “">Link”

I get this:

Link

which shows that in this case @webdbname is resolving to “”.

Also, if I create a column and insert a column formula of @webdbname, it resolves to “”.

Has anyone else observed this behaviour? @dbname works correctly.

Subject: @webdbname curious behaviour

Hi Simon

@WebDbName function came with Lotus Notes 6.XX, So make sure ur not opening this form using R5 .

Thanks

jana

http://dominodesigner.com

Subject: @webdbname curious behaviour SOLUTION

See Technote LO13781http://www-1.ibm.com/support/docview.wss?uid=swg1LO13781

If a view column uses @WebDBName, this function returns “”

unless the formula also contains other non-constant information, such as reference to a field.

Subject: @webdbname curious behaviour

Of course, you could always revert to the trusty old R5 style of calculating the

_webDbName := @ReplaceSubString(@Subset(@DbName; -1); " " : “\”; “+” : “/”)

But your observation is strange, indeed. No better idea, sorry.