How to add a rich text field and column
This howto explains how to add a rich text field and column to the Openbravo system.
The steps to get a rich text field in your window consists of 2 steps: 1) add a column to a table, and 2) add a field to a tab.
You can also create a new table and a new window/tab ofcourse. These 2 steps are described in detail in the following howtos:
This howto will only focus on the specific part of a rich text field.
This howto is supported by an example module which shows example of the code shown and discussed in this howto.
The example module adds a rich text field to the sales order header window. Please use an example module version of a release/implementation date of 23rd of January or later.
The code of the example module can be downloaded from this mercurial repository: https://code.openbravo.com/erp/mods/org.openbravo.client.application.examples/
Adding a column
First, you have to add a new column to the existing table.
When introducing the new column to the application dictionary, the correct reference must be selected, i.e. the new Rich Text reference:
Create a field - set col and rowspan
Then create a field within the tab/window. For a rich text field you can also set the col and rowspan (these are only shown when the corresponding column is defined as rich text):
The result is visualized as a rich text editor in form view: