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 Under Consideration
Workspace Domino
Categories AppDev Pack
Created by Guest
Created on Dec 20, 2019

AppDevPack/domino-db: Add a Evaluate() method to Document Class to allow computation of Notes @-Formulas

In some cases, it would be helpfull to be able to evaluate a Notes @-formula against an existing Document and get the value of the formula back. i would love to able to use this functionality in domino-db like so:

 

const back_from_eval = await document.evaluate('@If(ContentDataType = \'DP\';\'Detailseite\';ContentDataType != \'KP\';ContentDataType;PageTitle)');

 

The idea is to use this feature e.g. to"simulate" the calculation of a view column with a given Document in a collection by mapping through the document collection and generating values that are not stored in fields.. 

  • Attach files
  • Guest
    Reply
    |
    Apr 22, 2021

    What if I can't/won't use a special form to do computations ? Evaluate would allow situative Operations on the document without the need to hard-code every possible case in forms.

  • Guest
    Reply
    |
    Feb 26, 2020

    Actually, it can use an arbitrary form: https://doc.cwpcollaboration.com/appdevpack/docs/en/domino-db-advanced.html#compute-with-form

     

    So you can do what you want today, just make a form with all your formulas in it :)

  • Guest
    Reply
    |
    Feb 26, 2020

    You can compute with form on a document read.  It uses the form listed on the document but that should evaluate fields that are for display.  If this is not working for you, can you please raise a support ticket?

  • Guest
    Reply
    |
    Dec 23, 2019

    I think tgere is lots of classes that needs to be added to this not only evaluate to make this an alternative devpath.