Databar
The databar can be used to predefine tabs in the databar which should be loaded on login. The definition is done with Feature REST API and templating can be used to react on actual time or logged in users. Configuration for databars is located in separate json files under the following folder structure:
dynamic-app
│
└───samo-demo\configuration
│
└───map
│
└───databar
| └───default-databar.json
└───samo-lids-browser.json
Default databar​
Default databar - configuration example
{
"tabs": [
{
"title": "open projects",
"entityTypes": [
"ft_g_PROJEKT"
],
"defaultSort": [
{
"order": "desc",
"property": "at_PROJEKT_01"
}
],
"query": {
"types": {
"ft_g_PROJEKT": {
"filter": {
"type": "or",
"clauses": [
{
"type": "compare",
"operator": "equal",
"leftOperand": {
"type": "property",
"property": "at_PROJEKT_04"
},
"rightOperand": {
"type": "literal",
"value": 2
}
},
{
"type": "compare",
"operator": "equal",
"leftOperand": {
"type": "property",
"property": "at_PROJEKT_04"
},
"rightOperand": {
"type": "literal",
"value": 6
}
}
]
}
}
}
}
},
{
"title": "Parcely (mÄ›sĂÄŤnĂ)",
"type": "elastic-search",
"id": "ft_xKatastrParcela",
"entityTypes": [
"ft_xKatastrParcela"
],
"propertyGroupId": "fmd_xKatastrParcela_browse",
"query": {
"must": [
{
"type": "terms",
"field": "at_xKatastrParcela_cl_katastralniUzemi.ca_katastralniUzemi_popis.keyword",
"values": [
"Adamov"
]
}
]
},
"defaultSort": [
{
"property": "at_xKatastrParcela_cisloParcelyTrideni",
"order": "asc"
}
],
"hideProperties": [
"type"
],
"hideFilterProperties": [
"type"
]
}
]
}