#dominoforever | Product 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

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.. 

  • Guest
  • Dec 20 2019
  • Under Consideration
  • Attach files
  • Guest commented
    22 Apr, 2021 08:08am

    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 commented
    26 Feb, 2020 09:08pm

    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 commented
    26 Feb, 2020 09:04pm

    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 commented
    23 Dec, 2019 06:50am

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