ba-sachsen-pica/alephino/config/main/T_3000.json

52 lines
1.4 KiB
JSON
Raw Normal View History

2022-03-17 01:32:31 +01:00
[
{
"op": "core/column-addition",
"engineConfig": {
"facets": [],
"mode": "row-based"
},
"baseColumnName": "M|IDN",
"expression": "grel:filter(cells['M|100'].value.split('\u001f'), v, v.startsWith('a'))[0].slice(1)",
"onError": "set-to-blank",
"newColumnName": "3000",
2022-03-22 16:18:32 +01:00
"columnInsertIndex": 3,
"description": "Create column 3000"
2022-03-17 01:32:31 +01:00
},
{
"op": "core/text-transform",
"engineConfig": {
"facets": [],
"mode": "row-based"
},
"columnName": "3000",
"expression": "grel:if(\nvalue.contains(','),\n'\u001fa' + value.split(',')[0].trim() + '\u001fd' + value.split(',')[1].trim(),\n'\u001fP' + value\n)",
"onError": "keep-original",
"repeat": false,
"repeatCount": 10,
2022-03-22 16:18:32 +01:00
"description": "Text transform on cells in column 3000"
2022-03-17 01:32:31 +01:00
},
{
"op": "core/text-transform",
"engineConfig": {
"facets": [
{
"type": "text",
"name": "3000",
"columnName": "3000",
"query": "¬",
"mode": "text",
"caseSensitive": false,
"invert": false
}
],
"mode": "row-based"
},
"columnName": "3000",
"expression": "grel:value.split('¬')[0].trim() + '\u001fc' + value.split('¬')[1].trim()",
"onError": "keep-original",
"repeat": false,
"repeatCount": 10,
2022-03-22 16:18:32 +01:00
"description": "Text transform on cells in column 3000"
2022-03-17 01:32:31 +01:00
}
]