Skip to content

Lab 03 - Schema exploration

What you will learn

  • Understanding a form mode
  • Understanding a field group
  • Formulas to control access

Before you begin

Procedure

Note

Before you start altering the schema, use Postman, as outlined in How to verify, to observe the API behavior before and after altering the schema.

  1. In Admin UI, edit the default schema of ApprovalsCentral.nsf, and select the Equipment form.
  2. In mode default, add the following fields to a field group named stuff.

    • childRN
    • Comments
    • Cost
    • Equipment
  3. Add new modes: dql, (needs fields), raw (doesn't need fields).

  4. Add a new mode decision with 4 fields:

    Name Type Access
    completedApprover names write-only
    newHistory string write-only
    Status string read-only
    CurrentApprover names read-only

    Decision mode

    additional modes

  5. Click the Compute with Form toggle to the on position. For more information, see Set compute with form.

  6. Save your changes.

How to verify

  • Use Postman to retrieve a document using the default mode before and after your changes.
  • Try using the /raw endpoint before and after creating the "raw" mode.
  • Try a dql query before and after creating the dql mode.
  • Observe the difference before and after the addition of the field groups.

Things to explore

  • Domino REST API documentation

  • Discord discussion

  • Change the formula for read/write access to exclude your default user and observe the API reaction in Postman.

  • Try the Test Formula button in the mode.
  • Change the write access for default to Status = "" | Status = "draft".
  • Observe the difference when "compute with form" is checked.
  • Modify a field Name, and check if the output changes.

Next step

Proceed to Lab 04 - Additional scope & schema.