The following applies to Domino 8.5.3 FP3 UP1, design is done using Designer of the same version.
I'm having this Notes view with a column returning the number of DocChildren. The column formula is like this:
glViewTitle + " - " + @DocChildren("No comments"; "1 comment"; "% comments");
Using this view in the Notes client returns the expected result as in
Showing the view using standard domino http it's working as well:
Using the view within an Xpage, however, displays the @DocChildren info in a very unexpected way:
I played around with that a little and found that if I use @DocDescendants in the column formula the Xpage code shows a "D" instead of the "C". The number behind the letter obviously refers to the number of arguments used with the @Function (0 .. 3).
Until today I believed that a NotesXspViewEntry would return everything as we see it in the correspponding Notes view, but this obviously is not the case.
Btw.: this behaviour not only applies to view panels or the like but also to values returned using the Xpages' flavour of @DbLookup etc..
some questions here:
- could this be some kind of bug? Or am I using that in the wrong way?
- What other options would I have apart from building a Notes view without DocChildren info and then using
NotesXspViewEntry.getChildCount()
? - is there something else that can be used in a standard column formula but not in an Xpage context?