In the second post of the DDL series I would like to present two more porlets related to the Dynamic Data Lists:
The first one is the Dynamic Data List Display. Its purpose is to exhibit a determined list, that is specified through its configuration window (Figure 1). There are two possible ways to display a given list: The default view (grid view) and the Spreadsheet view (Figure 2). If you uncheck the Spreadsheet view option, the default view will be used. The editable option is used to enable/disable the edition of a list. If it is unchked, the list will be presented in a read-only mode and the user will not be able to add or edit the list records.
Figure 1 - Dynamic Data List Display Configuration
Figure 2 - Dynamic Data List Display Spreedsheet view
In adition, with this portlet the user is also able to specify templates (aditional views) for the select list. There are two types of templates: the Detail and the List template.
The Detail template is used to modify (or restrict) the data definition fields that will appear during the form edition. It is also possible to adorn those fields with other field types, such as paragraph and fieldset.
The List template is used to display the list of records, It can be used if the user needs more flexibility to display a given list. The user is able to speficy those templates on either freemarker or velocity language. I'll give more details of how to do create such templates in the next post.
The second portlet is the Dynamic Data List Form (Figure 3). The DDL Form is a Liferay plugin and it needs to be deployed in order to be available for use. The purpose of the DDL Form is to provide a simpler way for user populate a list. Among its configuration options there's also the possibibility for defining the detail template and to enable/disbale multiple form submissions per user.
Figure 3 - Dynamic Data List Form portlet
Keep tuned for more updates!