Last week we dove into creating and using data resources in UI Builder by binding the output from a data resource to component properties in order to make our components more dynamic. This week we’ll continue our UI Builder series by looking at the Entity View Action Mapper (EVAM) type of data source.
What if you want to show a data element as a card in a row, list, or a grid view, rather than one of the list components? You can take advantage of the new EVAM application and call your EVAM Definition from a data resource in UI Builder. You can then bind the output to a data set component to show a grid view of cards.
EVAM allows you to standardize how different data sources display in cards or lists. It’s useful for showing information as a card grid or list of information, but its real power comes as users can:
- Page through large data sets.
- See different views based on filtering.
- See data from multiple data sources. EVAM allows you to get data from multiple sources, then configure specific views for each source.
The EVAM Overview page on the docs has a good breakdown of the flow, but it’s basically:
- Entity (datasource) - Your data
- Map - How your data maps to a card component
- View - How the card displays the data
- Actions - Actions on your cards
In the video below, I walk through creating an EVAM Definition and consuming it from within UI Builder to show records in a grid view on a workspace page.
Our rough steps are:
- Create an EVAM Definition.
- Create the EVAM Definition record - This is basically a parent record for your data sources and view configs.
- Create and link an EVAM datasource.
- Create and link an EVAM View Config Bundle
- Create a new EVAM View Config record under the bundle.
- Create a View Template and reference from the EVAM View Config.
- Create an EVAM Action Definition from the EVAM View Config
- In UI Builder, create a handled event on the page.
- Use an EVAM Data Resource to call the EVAM definition in UI Builder.
- Bind the output from the EVAM Data Resource to a Data Row component in UI Builder and configure the event mapping.
As you can see, EVAM is a powerful new application you can use in UI Builder to display multiple sources of data in the same grid or list of cards with paging and filtering.
Make sure to check out the previous posts in this UI Builder series, and stay tuned for more posts every Wednesday through mid-March.
- Introduction to the New Now Experience UI Builder
- UI Builder - About Pages: Templates, Parameters, and Variants
- UI Builder - Data Resources