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 @Formulas
Created by Guest
Created on Sep 21, 2022

@Formula scriptlibrary that I can re-use across my design elements

If I have an @Formula function that I want to reuse across my design elements (e.g. Postopen event for all views and database script) I have to rewrite the function for every design element. It would be much handier if I could store the code as a function in a @Formula script library which I share across my application and just call the function


e.g.:


@If(

@IsMember("[admin]";@UserRoles);@Return(@Command()[OpenNavigator],"dbadmin-open"));

"")


becomes:

function commonPostOpenEvent (){

@If(@IsMember("[admin]";@UserRoles);@Return(@Command()[OpenNavigator],"dbadmin-open"));"")

}


and this function I call from the view Postopen event

  • Attach files
  • Guest
    Reply
    |
    Oct 4, 2022

    One way around this is to store your re-usable code in a setting/profile document and then retrieve it and use @Eval() to execute it.