This commit is contained in:
Felix Lohmeier 2022-03-30 23:38:05 +02:00
parent 2b0807f91d
commit 33b229624e
2 changed files with 42 additions and 0 deletions

View File

@ -0,0 +1,41 @@
[
{
"op": "core/column-addition",
"engineConfig": {
"facets": [],
"mode": "row-based"
},
"baseColumnName": "M|361",
"expression": "grel:value.split(' : ')[0] + forNonBlank(value.split(' : ')[1], v, '\u001fd' + v, '')",
"onError": "set-to-blank",
"newColumnName": "4222",
"columnInsertIndex": 3,
"description": "Create column 4222"
},
{
"op": "core/text-transform",
"engineConfig": {
"facets": [],
"mode": "row-based"
},
"columnName": "4222",
"expression": "grel:value.split(' / ')[0] + forNonBlank(value.split(' / ')[1], v, '\u001fh' + v, '')",
"onError": "keep-original",
"repeat": false,
"repeatCount": 10,
"description": "Text transform on cells in column 4222"
},
{
"op": "core/text-transform",
"engineConfig": {
"facets": [],
"mode": "row-based"
},
"columnName": "4222",
"expression": "grel:value.replace('¬', '')",
"onError": "keep-original",
"repeat": false,
"repeatCount": 10,
"description": "Text transform on cells in column 4222"
},
]

View File

@ -18,6 +18,7 @@ if(row.index - row.record.fromRowIndex == 0,
+ forNonBlank(cells['3010'].value, v, forEach(v.split('␟'), x, '028C ' + x + '\n').join(''), '') + forNonBlank(cells['3010'].value, v, forEach(v.split('␟'), x, '028C ' + x + '\n').join(''), '')
+ forNonBlank(cells['3100'].value, v, '029A ' + v + '\n', '') + forNonBlank(cells['3100'].value, v, '029A ' + v + '\n', '')
+ forNonBlank(cells['3110'].value, v, forEach(v.split('␟'), x, '029F ' + x + '\n').join(''), '') + forNonBlank(cells['3110'].value, v, forEach(v.split('␟'), x, '029F ' + x + '\n').join(''), '')
+ forNonBlank(cells['4222'].value, v, '046M ' + 'a' + v + '\n', '')
,'') ,'')
}}{{ }}{{
if(isNonBlank(cells['E0XXb'].value), if(isNonBlank(cells['E0XXb'].value),