Joget DX 8 Stable Released
The stable release for Joget DX 8 is now available, with a focus on UX and Governance.
In this article, we will show how we can combine multiple fields' values into one. As an example, we are going to use an image upload field and textual field and combine them together into one to produce the following result.
Figure 1: Profile Photo and Name in Single Cell
For context, this is the form used to construct the list.
Figure 2: Form Design
The main area of interest would be the datalist builder. Observe that the "member" column is making of the Bean Shell Formatter.
Figure 3: Datalist Builder
In the Bean Shell Formatter, this is the code used to produce the result.
Sample Java code:
In the code above, we are constructing the block line by line and wrap it around a "div" with class attribute declared for further customizations later on.
We can improve the result by making use of some CSS codes. The CSS code can be placed into the userview menu itself, in this example, we are placing it in CRUD Menu.
You can check out the sample app created for this article.