Add the plugin mapper
-
To be developed for
Form
ofFieldSet
container. -
Plugin to be used with
Dbui.grid.filter
andselector
form -
Can be configure from the python side.
-
The
mapper
has one property mapFileds which contains a structure like:[{ title: "panel1", layout: "fit", items: [ "fieldname4", "fieldname2"] }, { title: "panel2", items: [ "fieldname3", "fieldname1"] }]
-
In the initialisation phase, the mapper receive The configuration of the Form or FieldSet which contains the property
items
with the configuration of the form fields. -
In the initialisation of the plugin, the property items is replace by the mapFields in which the string "fieldnameX" are replace by their corresponding field configuration.
-
In order to do it:
-
scan the
configuration.items
an build a dictionary:``` fieldnameX → field configuration ```
-
scan the mapFields and replace the fieldname by its configuration.
-
replace items by mapFields.
-
Add the layout
accordeon
to the main object.
-
-
It can be used to replace the
TrackEvents.HistoryGridFilter