Skip to main content

Samo-entity-cart-app-module

Header

Level: Intermediate

Keywords: application modules, entity cart, storing and assigning entities

The result: integration of entity-cart-app-module to your project

This site shows overview of samo-entity-cart-app-module. This module is of "dialog" type and works together with samo-entity-cart-dialog module. It "collects" selected entities and stores them into "entity cart". After clicking the entity-cart icon in the application toolbar, the samo-entity-cart-dialog appears and you can see all stored entities. It is useful for assigning them to other entity.

samo-entity-cart-app-module - configuration example
{
"type" : "component:entity-modules/entity-cart/samo-entity-cart-app-module",

"security": {
"loggedIn": true
},

"detailType" : "dialog",
"propertyGroupId" : "globalPropertyGroup",

"detail" :
{
"module" : {
"type": "component:entity-modules/entity-cart/samo-entity-cart-dialog",
"title": "{tr:cart.title}"
}
}
}

All configuration options are available in Dynamic-App Module Catalog.

tip

To store some entity to the entity-cart you need to define an intent. To do this see Intent chapter and use add-to-entity-cart configuration intent.