Reihenfolge Unterfelder 2003

This commit is contained in:
Felix Lohmeier 2022-06-30 16:04:13 +02:00
parent 778a449e22
commit d70a0a71f9
2 changed files with 69 additions and 3 deletions

View File

@ -24,5 +24,71 @@
"repeat": false, "repeat": false,
"repeatCount": 10, "repeatCount": 10,
"description": "Text transform on cells in column 2003" "description": "Text transform on cells in column 2003"
},
{
"op": "core/text-transform",
"engineConfig": {
"facets": [
{
"type": "list",
"name": "2003",
"expression": "isBlank(value)",
"columnName": "2003",
"invert": false,
"omitBlank": false,
"omitError": false,
"selection": [
{
"v": {
"v": false,
"l": "false"
}
}
],
"selectBlank": false,
"selectError": false
}
],
"mode": "row-based"
},
"columnName": "2003",
"expression": "grel:forEach(value.split('␟'), v, '\u001f0' + v).join('␟')",
"onError": "keep-original",
"repeat": false,
"repeatCount": 10,
"description": "Text transform on cells in column 2003 using expression grel:forEach(value.split('␟'), v, '\u001f0' + v).join('␟')"
},
{
"op": "core/text-transform",
"engineConfig": {
"facets": [
{
"type": "list",
"name": "2003",
"expression": "isBlank(value)",
"columnName": "2003",
"invert": false,
"omitBlank": false,
"omitError": false,
"selection": [
{
"v": {
"v": false,
"l": "false"
}
}
],
"selectBlank": false,
"selectError": false
}
],
"mode": "row-based"
},
"columnName": "2003",
"expression": "grel:forEach(value.split('␟'), v, forEach(v.split('\u001f'), x, x).sort().reverse().join('\u001f')).join('␟')",
"onError": "keep-original",
"repeat": false,
"repeatCount": 10,
"description": "Text transform on cells in column 2003 using expression grel:forEach(value.split('␟'), v, forEach(v.split('\u001f'), x, x).sort().reverse().join('\u001f')).join('␟')"
} }
] ]

View File

@ -5,7 +5,7 @@ if(row.index - row.record.fromRowIndex == 0,
+ forNonBlank(cells['2000'].value, v, forEach(v.split('␟'), x, '004A ' + x + '\n').join(''), '') + forNonBlank(cells['2000'].value, v, forEach(v.split('␟'), x, '004A ' + x + '\n').join(''), '')
+ forNonBlank(cells['2009'].value, v, forEach(v.split('␟'), x, '004D ' + x + '\n').join(''), '') + forNonBlank(cells['2009'].value, v, forEach(v.split('␟'), x, '004D ' + x + '\n').join(''), '')
+ forNonBlank(cells['2201'].value, v, forEach(v.split('␟'), x, '004L ' + '0' + x + '\n').join(''), '') + forNonBlank(cells['2201'].value, v, forEach(v.split('␟'), x, '004L ' + '0' + x + '\n').join(''), '')
+ forNonBlank(cells['2003'].value, v, forEach(v.split('␟'), x, '004P ' + '0' + x + '\n').join(''), '') + forNonBlank(cells['2003'].value, v, forEach(v.split('␟'), x, '004P ' + '' + x + '\n').join(''), '')
+ forNonBlank(cells['2053'].value, v, '004W ' + '0' + v + '\n', '') + forNonBlank(cells['2053'].value, v, '004W ' + '0' + v + '\n', '')
+ forNonBlank(cells['2199'].value, v, '006Y ' + '0' + v + '\n', '') + forNonBlank(cells['2199'].value, v, '006Y ' + '0' + v + '\n', '')
+ forNonBlank(cells['1500'].value, v, '010@ ' + forEach(v.split('‡'),x,'a' + x).join('') + '\n', '') + forNonBlank(cells['1500'].value, v, '010@ ' + forEach(v.split('‡'),x,'a' + x).join('') + '\n', '')
@ -20,8 +20,8 @@ if(row.index - row.record.fromRowIndex == 0,
+ forNonBlank(cells['3210'].value, v, '022A/00 ' + 'a' + v + '\n', '') + forNonBlank(cells['3210'].value, v, '022A/00 ' + 'a' + v + '\n', '')
+ forNonBlank(cells['3211'].value, v, '022A/01 ' + 'a' + v + '\n', '') + forNonBlank(cells['3211'].value, v, '022A/01 ' + 'a' + v + '\n', '')
+ forNonBlank(cells['3260'].value, v, forEach(v.split('␟'), x, '027A ' + 'a' + x + '\n').join(''), '') + forNonBlank(cells['3260'].value, v, forEach(v.split('␟'), x, '027A ' + 'a' + x + '\n').join(''), '')
+ forNonBlank(cells['3000'].value, v, '028A ' + v + '\n', '') + forNonBlank(cells['3000'].value, v, '028A ' + '' + v + '\n', '')
+ 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 ' + 'a' + v + '\n', '') + forNonBlank(cells['3100'].value, v, '029A ' + 'a' + v + '\n', '')
+ forNonBlank(cells['3110'].value, v, forEach(v.split('␟'), x, '029F ' + 'a' + x + '\n').join(''), '') + forNonBlank(cells['3110'].value, v, forEach(v.split('␟'), x, '029F ' + 'a' + x + '\n').join(''), '')
+ forNonBlank(cells['4025'].value, v, '031@ ' + 'a' + v + '\n', '') + forNonBlank(cells['4025'].value, v, '031@ ' + 'a' + v + '\n', '')