Studio Developer Manual / Version 2010
Table Of Contents
If you need additional fields in the underlying store, you can add fields using the
listViewDataFields
property of the ConfigureListViewPlugin
. The
standard columns do not need an explicit field configuration. But if, for example, you
want to display the name of the user who created a content, the implementation would look like
this:
<editor:ConfigureListViewPlugin> <editor:listViewDataFields> ... <ui:DataField name="creator" mapping="creator.name"/> </editor:listViewDataFields> <editor:repositoryListViewColumns> ... <GridColumn header="Creator" dataIndex="creator" width="75"/> </editor:repositoryListViewColumns> </editor:ConfigureListViewPlugin>
Example 7.43. Defining list view fields
In this case, an Ext JS gridcolumn
is used for display, setting the column's
attributes as needed. The definition of the field is slightly complex, because the property
name
of the property creator
of each content in the search result
should be accessed. To this end, a non-trivial mapping
property will be added,
but the name
attribute of the data field and the dataIndex
attribute
of the column will be kept simple and in sync. If the mapping property were identical to the
name property of the field, it could have been omitted.