Welcome to the #dominoforever Product Ideas Lab! 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 jointly by the IBM & 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.


Make Default- Classes Subclassable in LotusScript

We have some advanced applications, where we need the default classes NotesDocument or NotesUIDocument or any other to have some special functions like "SaveWhenModified" or "ReplaceItemValueHashed" (only mark the document as changed when the value really changes), or auditing.. It would be very convenient to write code like: 

Class NotesDocumentAdvanced As NotesDocument

But when you try you get "Cannot subclass: NOTESDOCUMENT". 

You can workaround that by manually writing all the necessary functions / subs in your class and simply calling the NotesDocument- Functions for them, but it is not convenient (and you cannot have optional parameters or overloading in functions that you define manually, but the Standard classes do)...

 

Please allow us to subclass the default classe in LotusScript

 

Torsten Link

  • Avatar32.5fb70cce7410889e661286fd7f1897de Guest
  • Aug 24 2018
  • Attach files