View configurations, view templates, and configuration bundles for EVAM
- UpdatedFeb 1, 2024
- 2 minutes to read
- Washington DC
- Now Platform Capabilities
The Washington DC release is no longer supported. As such, the product documentation and release notes are provided for informational purposes only, and will not be updated.
A view configuration combines conditions, database fields, and declarative actions with an associated view template. You can also group view configurations together to create configuration bundles.
EVAM has pre-defined view configurations, view templates, and configuration bundles to make it
easier to use the feature. The OOB configuration bundles include:
- Service Portal Search Bundle
- Service Portal bundle (sp_bundle)
View configurations have an associated view template, tables and conditions, designated table field with data, and associated declarative actions. You can look at the demo_evam_dataset for examples of OOB configuration views. These view configurations are ready to use and are meant to work with many use cases. You can also create or edit view configurations to meet specific needs.
The OOB view templates match an associated view configuration. The templates contain the JSON
used to give the necessary information for the card display and use. For example, the
Attachment Search Template contains the following:
These view templates are ready to use and are meant to work with many use cases.
You can also create or edit view templates to meet specific needs.
{
"component": "sn-search-result-evam-card",
"staticValues": {
"detailLabelType": {
"translatable": false,
"key": "inline"
},
"textHeaderLabelOne": {
"translatable": true,
"key": "Attachment"
},
"detailLabelOne": {
"translatable": true,
"key": "From:"
}
},
"mappings": {
"imageType": "doctype_image_type",
"icon": "doctype_image",
"imageURL":"doctype_image",
"textHeaderLabelTwo": "doctype",
"title": "ai_search_teaser_title",
"summary": "ai_search_teaser_text",
"detailValueOne":"parent_title"
},
"actionMappings": {
"clickAction": "navigation",
"footerLinkAction": "navigation_to_parent_record"
}
}The
JSON structure has the following sections: | Template | Description |
|---|---|
| component | The card component name. |
| staticValues | The static text mapping to component properties. These values
have the following properties:
|
| mappings | The mapping of the datasource field to the component properties. |
| actionMappings | The actions that you can associate to the card. |