Closed klehmann closed 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();
FIXES #296 FIXES #72
Example: