HCL-TECH-SOFTWARE / domino-jnx

Modern Domino Java API based on JNA access to Domino's C API
https://opensource.hcltechsw.com/domino-jnx/
Apache License 2.0
14 stars 3 forks source link

API support to create and modify views and folders #313

Closed klehmann closed 2 years ago

klehmann commented 2 years ago

Example:

    DbDesign design = db.getDesign();

    View newView = design.createView("my new view");
    newView.setSelectionFormula("Form=\"Person\"");

    newView.addColumn("Lastname col", "Lastname", (col) -> {
      col.setFormula("Lastname");
      col.getSortConfiguration().setCategory(true).setSortedDescending(false);
      CDResource twistie = CDResource.newSharedImageByName("twistie_plusminus_black");
      col.setTwistieImage(twistie);
    })
    .addColumn("Firstname col", "Firstname", (col) -> {
      col.setFormula("Firstname");
      col.getSortConfiguration().setSortedDescending(false);
    });

    newView.setSelectionFormula("Form=\"Person\"");
    newView.save();
klehmann commented 2 years ago

FIXES #296 FIXES #72