-
I have an app developed in R6.5. When I migrated a bunch of its code from a parallel development effort and merged it with my XPages work yesterday, it built (and continues to build) without issue. However it does not function without issue.
-
Each time I open the application I see a dialog: “Variable not declared: PL”. Problem is the variable PL does not appear in any database script nor any code that should be running on application launch. There is no custom launch code in this system, nor has there ever been.
-
PL is my form-global audit logging instance. It’s instantiated when select documents in the system are opened by the user, for read or edit, and it tracks everything that happens to that document. It’s perfectly right and proper that it would not exist at application launch because so far that instance of Notes has never attempted to open a document.
-
Naturally debugging LS gives no clue what’s happening, because there should be no LS that runs at launch. Still I had to try, because PL is a LotusScript class object. It can not possibly even be referenced, to pop an undeclared error, unless some LotusScript code is running somewhere, rightly or not.
-
How do I even go about troubleshooting this?
Thanks for your time…
EDIT:
- It looks like any View that contains two of the select document types causes this dialog to appear. It appears on app load because a View containing one of the “offending” document types is the default on load. If I move around the various Views, ones that do not contain either of the two document types, but that may still instantiate pl, do not pop the undeclared dialog.