Axelor Doc

The results

Here we define the columns you want displayed in the view result grid.

They may be different search criteria. The tag is used <result-fields> .

Each column in the grid view Result is defined using the tag <field>. structure of the tag is as follows: ResultField

Details of tags used:

  • name : Technical Field Name (Required)
  • title : Label field
  • type : Field type from a list
  • target : target class in the case of relational field
  • widget : Widget used

The field types are used:

  • string
  • integer
  • boolean
  • decimal
  • date
  • datetime
  • reference: In the latter case, it will add the option target to inform the target class.

Widgets used are:

  • SuggestBox: Display of M2O by a dropdown list

Example:

<result-fields>
    <field name="customer" type="string" />
    <field name="company" type="string" />
    <field name="product" type="string" />
    <field name="date" type="date" />
    <field name="value" type="decimal" />
</result-fields>

Widgets

The first column of the search grid defines the name of the subject of the record found. This makes it easy to visualize the type of line: Order, customer, invoice, ...