What is "ViewByList" in the "Global Objects" list?

  • I’m failing to find out if a document is in edit mode on an XPage, and the “script editor” has a “ViewByList” entry between “facesContext” and “database”. This does not appear in “help”, nor anywhere in the system except this list, and it has an isEditable() method. What does this object do? And why doesn’t it appear in “help”?

Subject: SOLVED: PEBKAC

  • Apparently this “Global Objects” list also contains items that have been declared as a data binding. The “ViewByList” object is one I set on this control to pull a list of views and links to same from a document instead of hard-coding them on the control. It’s just mixed in with all of the pre-existent objects, so unless one knows user objects appear here it seems out of place. Once one knows (or deigns to remember) it makes perfect sense. It is after all an object that is global to the control. It would be convenient if these “locally global” objects could be somehow differentiated from the truly global objects, like context. Italics, perhaps, or a different font.

  • Hope this helps some other n00b…