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.