XPage pageTitle property - @DbTitle function doesn't work

I have several XPages where I’ve set the pageTitle property to compute dynamically using server-side JS, and the code is just @DbTitle.I haven’t tried that @function anywhere else but, at least in this context, it returns an empty string where I would expect to get the database title.

I have a simple workaround: database.getTitle() works fine in the same place.

Subject: return @DbTitle() works for me

Subject: Ah, it’s the brackets

I had written my code like I would in formula language: @DbTitle, without brackets.Change it to @DbTitle(), and it works.