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

  • Avatar32.5fb70cce7410889e661286fd7f1897de Guest
  • Dec 20 2019
  • Needs review
  • Attach files
  • Avatar40.8f183f721a2c86cd98fddbbe6dc46ec9
    Guest commented
    26 Feb 21:08

    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 :)

  • Avatar40.8f183f721a2c86cd98fddbbe6dc46ec9
    Guest commented
    26 Feb 21:04

    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?

  • Avatar40.8f183f721a2c86cd98fddbbe6dc46ec9
    Guest commented
    December 23, 2019 06:50

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