Skip to Main Content
HCL Domino Ideas Portal

Welcome to the #dominoforever Product Ideas Forum! The place where you can submit product ideas and enhancement request. We encourage you to participate by voting on, commenting on, and creating new ideas. All new ideas will be evaluated by HCL Product Management & Engineering teams, and the next steps will be communicated. While not all submitted ideas will be executed upon, community feedback will play a key role in influencing which ideas are and when they will be implemented.

For more information and upcoming events around #dominoforever, please visit our Destination Domino Page

Status Needs Review
Workspace Domino Designer
Categories LotusScript
Created by Guest
Created on May 12, 2021

global lotus scriptlibraries/objects

I have a project that consists of over 40 domino databases.There I have a class that encapsulates database access (session, datbase, view, ..).(dim appOrg as New App ("ProVeOrg") or dim appQuali as New App ("ProVeQuali") ...).This is used in many forms, views and scriptlibraries and is always reinitialized.It would be nice to initiate and use this once per session, similar to the application scope.

  • Attach files
  • Guest
    Reply
    |
    Jul 1, 2022

    session.CurrentDatabase would have to return nothing. Instead I can build e.G. a list dim dbApp List As NotesDatabase and check if it is already in the list or put it in the list dbApp(Databasename) ...

  • Guest
    Reply
    |
    Jun 25, 2021

    What would return the session.CurrentDatabase used in such a shared object? It is used by every LotusScript, and here it would have to return nothing.

  • Guest
    Reply
    |
    May 14, 2021

    Each form has up to 8 subforms with different scriptlibraries. These all use the "App" and "ErrorHandler" classes. I can't use static there.

  • Guest
    Reply
    |
    May 12, 2021

    If it's the same object each time, try using the static keyword. See https://www.intec.co.uk/lotusscript-and-the-static-keyword/. That will give you the result of applicationScope.