Lotus Domino

  • CRYFH: how can I bind a richtext field with javascript?

    Maybe it helps to have some knowledgeable readers, let’s see. What I would like to achieve:Have tooltips displaying RichText fields (defined as “help documents”). This works for just 1 tooltip: I define a document data source and simply bind the RT field on the xPage to the docSource.Body, voilĂ ! Now:Of course I do have multiple…

    read more

  • QUINDIP: format your custom type aheads properly

    Did you read my blogs about cool type ahead features? really cool type-ahead and making type-ahead easy as pie. Here’s the sequel on how to make the “custom” type-ahead also look really nice. Java code to create custom type-ahead: StringBuffer sb = new StringBuffer(“”);StringBuffer sbNames = new StringBuffer(“”);Session session = (Session)DominoUtils.getCurrentSession();Database db = (Database) DominoUtils.getCurrentDatabase();View view…

    read more

  • QUINDIP: how to set field values with java (or DominoDocument the magic animal)

    Old approach:    XspInputText field = (XspInputText) StandardUtil.findComponent(facesContext .getViewRoot(), “countryName”); The annoying thing about this approach: You never know exactly which class the component has, ie. a “read only” field is not XspInputText etc., and thus you cannot just use this approach really transparently. New approach: DominoDocument dominoDoc = StandardUtil.getDominoDocument(); dominoDoc.replaceItemValue(“editableField”, new Date().toString()); It works…

    read more