GT0: 4150, 4151, 4160

This commit is contained in:
Felix Lohmeier 2022-05-18 22:59:03 +02:00
parent 98fcec33c8
commit 8d602e05dc
3 changed files with 671 additions and 0 deletions

View File

@ -0,0 +1,388 @@
[
{
"op": "core/column-addition",
"engineConfig": {
"facets": [
{
"type": "list",
"name": "M|GT0",
"expression": "isBlank(value)",
"columnName": "M|GT0",
"invert": false,
"omitBlank": false,
"omitError": false,
"selection": [
{
"v": {
"v": false,
"l": "false"
}
}
],
"selectBlank": false,
"selectError": false
}
],
"mode": "row-based"
},
"baseColumnName": "M|GT0",
"expression": "grel:forNonBlank(filter(cells['M|GT0'].value.split('\u001f'), f, f[0] == 'a')[0].slice(1), x, '\u001fa' + x, '')",
"onError": "set-to-blank",
"newColumnName": "415X",
"columnInsertIndex": 3,
"description": "Create column 415X at index 107 based on column M|GT0 using expression grel:forNonBlank(filter(cells['M|GT0'].value.split('\u001f'), f, f[0] == 'a')[0].slice(1), x, '\u001fa' + x, '')"
},
{
"op": "core/text-transform",
"engineConfig": {
"facets": [
{
"type": "list",
"name": "M|GT0",
"expression": "isBlank(value)",
"columnName": "M|GT0",
"invert": false,
"omitBlank": false,
"omitError": false,
"selection": [
{
"v": {
"v": false,
"l": "false"
}
}
],
"selectBlank": false,
"selectError": false
},
{
"type": "list",
"name": "File",
"expression": "value",
"columnName": "File",
"invert": false,
"omitBlank": false,
"omitError": false,
"selection": [
{
"v": {
"v": "LE",
"l": "LE"
}
}
],
"selectBlank": false,
"selectError": false
}
],
"mode": "row-based"
},
"columnName": "415X",
"expression": "grel:forNonBlank(value, v, v, '') + forNonBlank(cells['gt0LE'].value.cross('alephino','M|IDN').cells['M|335'].value[0], x, '\u001fd' + x, '') + forNonBlank(cells['gt0LE'].value.cross('alephino','M|IDN').cells['M|359'].value[0], x, '\u001fh' + x, '')",
"onError": "keep-original",
"repeat": false,
"repeatCount": 10,
"description": "Text transform on cells in column 415X using expression grel:forNonBlank(value, v, v, '') + forNonBlank(cells['gt0LE'].value.cross('alephino','M|IDN').cells['M|335'].value[0], x, '\u001fd' + x, '') + forNonBlank(cells['gt0LE'].value.cross('alephino','M|IDN').cells['M|359'].value[0], x, '\u001fh' + x, '')"
},
{
"op": "core/text-transform",
"engineConfig": {
"facets": [
{
"type": "list",
"name": "M|GT0",
"expression": "isBlank(value)",
"columnName": "M|GT0",
"invert": false,
"omitBlank": false,
"omitError": false,
"selection": [
{
"v": {
"v": false,
"l": "false"
}
}
],
"selectBlank": false,
"selectError": false
},
{
"type": "list",
"name": "File",
"expression": "value",
"columnName": "File",
"invert": false,
"omitBlank": false,
"omitError": false,
"selection": [
{
"v": {
"v": "RS",
"l": "RS"
}
}
],
"selectBlank": false,
"selectError": false
}
],
"mode": "row-based"
},
"columnName": "415X",
"expression": "grel:forNonBlank(value, v, v, '') + forNonBlank(cells['gt0RS'].value.cross('alephino','M|IDN').cells['M|335'].value[0], x, '\u001fd' + x, '') + forNonBlank(cells['gt0RS'].value.cross('alephino','M|IDN').cells['M|359'].value[0], x, '\u001fh' + x, '')",
"onError": "keep-original",
"repeat": false,
"repeatCount": 10,
"description": "Text transform on cells in column 415X using expression grel:forNonBlank(value, v, v, '') + forNonBlank(cells['gt0RS'].value.cross('alephino','M|IDN').cells['M|335'].value[0], x, '\u001fd' + x, '') + forNonBlank(cells['gt0RS'].value.cross('alephino','M|IDN').cells['M|359'].value[0], x, '\u001fh' + x, '')"
},
{
"op": "core/column-addition",
"engineConfig": {
"facets": [
{
"type": "list",
"name": "M|GT0",
"expression": "isBlank(value)",
"columnName": "M|GT0",
"invert": false,
"omitBlank": false,
"omitError": false,
"selection": [
{
"v": {
"v": false,
"l": "false"
}
}
],
"selectBlank": false,
"selectError": false
}
],
"mode": "row-based"
},
"baseColumnName": "M|GT0",
"expression": "grel:filter(cells['M|GT0'].value.split('\u001f'), f, f[0] == 'b')[0].slice(1)",
"onError": "set-to-blank",
"newColumnName": "gt0b",
"columnInsertIndex": 107,
"description": "Create column gt0b at index 107 based on column M|GT0 using expression grel:filter(cells['M|GT0'].value.split('\u001f'), f, f[0] == 'b')[0].slice(1)"
},
{
"op": "core/column-addition",
"engineConfig": {
"facets": [
{
"type": "list",
"name": "M|GT0",
"expression": "isBlank(value)",
"columnName": "M|GT0",
"invert": false,
"omitBlank": false,
"omitError": false,
"selection": [
{
"v": {
"v": false,
"l": "false"
}
}
],
"selectBlank": false,
"selectError": false
}
],
"mode": "row-based"
},
"baseColumnName": "M|GT0",
"expression": "grel:filter(cells['M|GT0'].value.split('\u001f'), f, f[0] == 's')[0].slice(1)",
"onError": "set-to-blank",
"newColumnName": "gt0s",
"columnInsertIndex": 107,
"description": "Create column gt0s at index 107 based on column M|GT0 using expression grel:filter(cells['M|GT0'].value.split('\u001f'), f, f[0] == 's')[0].slice(1)"
},
{
"op": "core/text-transform",
"engineConfig": {
"facets": [
{
"type": "list",
"name": "M|GT0",
"expression": "isBlank(value)",
"columnName": "M|GT0",
"invert": false,
"omitBlank": false,
"omitError": false,
"selection": [
{
"v": {
"v": false,
"l": "false"
}
}
],
"selectBlank": false,
"selectError": false
},
{
"type": "text",
"name": "gt0b",
"columnName": "gt0b",
"query": " ; ",
"mode": "text",
"caseSensitive": false,
"invert": false
}
],
"mode": "row-based"
},
"columnName": "415X",
"expression": "grel:forNonBlank(value, v, v + '␟', '') + forNonBlank(cells['gt0b'].value.split(' ; ')[0], v, '\u001fa' + v, '') + forNonBlank(cells['gt0b'].value.split(' ; ')[1], v, '\u001fl' + v, '')",
"onError": "keep-original",
"repeat": false,
"repeatCount": 10,
"description": "Text transform on cells in column 415X using expression grel:forNonBlank(value, v, v + '␟', '') + forNonBlank(cells['gt0b'].value.split(' ; ')[0], v, '\u001fa' + v, '') + forNonBlank(cells['gt0b'].value.split(' ; ')[1], v, '\u001fl' + v, '')"
},
{
"op": "core/text-transform",
"engineConfig": {
"facets": [
{
"type": "list",
"name": "M|GT0",
"expression": "isBlank(value)",
"columnName": "M|GT0",
"invert": false,
"omitBlank": false,
"omitError": false,
"selection": [
{
"v": {
"v": false,
"l": "false"
}
}
],
"selectBlank": false,
"selectError": false
},
{
"type": "text",
"name": "gt0b",
"columnName": "gt0b",
"query": " ; ",
"mode": "text",
"caseSensitive": false,
"invert": true
},
{
"type": "list",
"name": "gt0b",
"expression": "isBlank(value)",
"columnName": "gt0b",
"invert": false,
"omitBlank": false,
"omitError": false,
"selection": [
{
"v": {
"v": false,
"l": "false"
}
}
],
"selectBlank": false,
"selectError": false
}
],
"mode": "row-based"
},
"columnName": "415X",
"expression": "grel:forNonBlank(value, v, v, '') + forNonBlank(cells['gt0b'].value, v, '\u001fl' + v, '')",
"onError": "keep-original",
"repeat": false,
"repeatCount": 10,
"description": "Text transform on cells in column 415X using expression grel:forNonBlank(value, v, v, '') + forNonBlank(cells['gt0b'].value, v, '\u001fl' + v, '')"
},
{
"op": "core/text-transform",
"engineConfig": {
"facets": [
{
"type": "list",
"name": "M|GT0",
"expression": "isBlank(value)",
"columnName": "M|GT0",
"invert": false,
"omitBlank": false,
"omitError": false,
"selection": [
{
"v": {
"v": false,
"l": "false"
}
}
],
"selectBlank": false,
"selectError": false
},
{
"type": "text",
"name": "gt0b",
"columnName": "gt0b",
"query": " ; ",
"mode": "text",
"caseSensitive": false,
"invert": true
},
{
"type": "list",
"name": "gt0b",
"expression": "isBlank(value)",
"columnName": "gt0b",
"invert": false,
"omitBlank": false,
"omitError": false,
"selection": [
{
"v": {
"v": true,
"l": "true"
}
}
],
"selectBlank": false,
"selectError": false
},
{
"type": "list",
"name": "gt0s",
"expression": "isBlank(value)",
"columnName": "gt0s",
"invert": false,
"omitBlank": false,
"omitError": false,
"selection": [
{
"v": {
"v": false,
"l": "false"
}
}
],
"selectBlank": false,
"selectError": false
}
],
"mode": "row-based"
},
"columnName": "415X",
"expression": "grel:forNonBlank(value, v, v, '') + forNonBlank(cells['gt0s'].value, v, '\u001fl' + v, '')",
"onError": "keep-original",
"repeat": false,
"repeatCount": 10,
"description": "Text transform on cells in column 415X using expression grel:forNonBlank(value, v, v, '') + forNonBlank(cells['gt0s'].value, v, '\u001fl' + v, '')"
}
]

View File

@ -0,0 +1,281 @@
[
{
"op": "core/column-addition",
"engineConfig": {
"facets": [
{
"type": "list",
"name": "M|GT0",
"expression": "isBlank(value)",
"coluamnName": "M|GT0",
"invert": false,
"omitBlank": false,
"omitError": false,
"selection": [
{
"v": {
"v": false,
"l": "false"
}
}
],
"selectBlank": false,
"selectError": false
},
{
"type": "list",
"name": "gt0s",
"expression": "isBlank(value)",
"columnName": "gt0s",
"invert": false,
"omitBlank": false,
"omitError": false,
"selection": [
{
"v": {
"v": false,
"l": "false"
}
}
],
"selectBlank": false,
"selectError": false
}
],
"mode": "row-based"
},
"baseColumnName": "gt0s",
"expression": "grel:'\u001fX' + value",
"onError": "set-to-blank",
"newColumnName": "4160",
"columnInsertIndex": 3,
"description": "Create column 4160 at index 3 based on column gt0s using expression grel:'\u001fX' + value"
},
{
"op": "core/text-transform",
"engineConfig": {
"facets": [
{
"type": "list",
"name": "M|GT0",
"expression": "isBlank(value)",
"columnName": "M|GT0",
"invert": false,
"omitBlank": false,
"omitError": false,
"selection": [
{
"v": {
"v": false,
"l": "false"
}
}
],
"selectBlank": false,
"selectError": false
},
{
"type": "list",
"name": "gt0s",
"expression": "isBlank(value)",
"columnName": "gt0s",
"invert": false,
"omitBlank": false,
"omitError": false,
"selection": [
{
"v": {
"v": true,
"l": "true"
}
}
],
"selectBlank": false,
"selectError": false
},
{
"type": "list",
"name": "gt0b",
"expression": "isBlank(value)",
"columnName": "gt0b",
"invert": false,
"omitBlank": false,
"omitError": false,
"selection": [
{
"v": {
"v": false,
"l": "false"
}
}
],
"selectBlank": false,
"selectError": false
}
],
"mode": "row-based"
},
"columnName": "4160",
"expression": "grel:'\u001fX' + if(value.contains(' ; '), cells['gt0b'].value.split(' ; ')[1], cells['gt0b'].value)",
"onError": "keep-original",
"repeat": false,
"repeatCount": 10,
"description": "Text transform on cells in column 4160 using expression grel:'\u001fX' + if(value.contains(' ; '), cells['gt0b'].value.split(' ; ')[1], cells['gt0b'].value)"
},
{
"op": "core/text-transform",
"engineConfig": {
"facets": [
{
"type": "list",
"name": "M|GT0",
"expression": "isBlank(value)",
"columnName": "M|GT0",
"invert": false,
"omitBlank": false,
"omitError": false,
"selection": [
{
"v": {
"v": false,
"l": "false"
}
}
],
"selectBlank": false,
"selectError": false
},
{
"type": "list",
"name": "gt0s",
"expression": "isBlank(value)",
"columnName": "gt0s",
"invert": false,
"omitBlank": false,
"omitError": false,
"selection": [
{
"v": {
"v": true,
"l": "true"
}
}
],
"selectBlank": false,
"selectError": false
},
{
"type": "list",
"name": "gt0b",
"expression": "isBlank(value)",
"columnName": "gt0b",
"invert": false,
"omitBlank": false,
"omitError": false,
"selection": [
{
"v": {
"v": true,
"l": "true"
}
}
],
"selectBlank": false,
"selectError": false
},
{
"type": "list",
"name": "M|331",
"expression": "isBlank(value)",
"columnName": "M|331",
"invert": false,
"omitBlank": false,
"omitError": false,
"selection": [
{
"v": {
"v": false,
"l": "false"
}
}
],
"selectBlank": false,
"selectError": false
}
],
"mode": "row-based"
},
"columnName": "4160",
"expression": "grel:forNonBlank(cells['M|331'].value, v, '\u001fX' + v.find(/[A-Za-z0-9]{3}/)[0].toLowercase(), '') + forNonBlank(cells['M|425'].value, v, '.' + v.find(/\\d{4}/)[0], '') + forNonBlank(cells['M|425a'].value, v, '.' + v.find(/\\d{4}/)[0], '')",
"onError": "keep-original",
"repeat": false,
"repeatCount": 10,
"description": "Text transform on cells in column 4160 using expression grel:forNonBlank(cells['M|331'].value, v, '\u001fX' + v.find(/[A-Za-z0-9]{3}/)[0].toLowercase(), '') + forNonBlank(cells['M|425'].value, v, '.' + v.find(/\\d{4}/)[0], '') + forNonBlank(cells['M|425a'].value, v, '.' + v.find(/\\d{4}/)[0], '')"
},
{
"op": "core/text-transform",
"engineConfig": {
"facets": [
{
"type": "list",
"name": "M|GT0",
"expression": "isBlank(value)",
"columnName": "M|GT0",
"invert": false,
"omitBlank": false,
"omitError": false,
"selection": [
{
"v": {
"v": false,
"l": "false"
}
}
],
"selectBlank": false,
"selectError": false
}
],
"mode": "row-based"
},
"columnName": "4160",
"expression": "grel:forNonBlank(value, v, v, '') + forNonBlank(coalesce(cells['gt0RS'].value, cells['gt0LE'].value), v, '\u001f7' + 'BA' + cells['File'].value + v, '')",
"onError": "keep-original",
"repeat": false,
"repeatCount": 10,
"description": "Text transform on cells in column 4160 using expression grel:forNonBlank(value, v, v, '') + forNonBlank(coalesce(cells['gt0RS'].value, cells['gt0LE'].value), v, '\u001f7' + 'BA' + cells['File'].value + v, '')"
},
{
"op": "core/text-transform",
"engineConfig": {
"facets": [
{
"type": "list",
"name": "M|GT0",
"expression": "isBlank(value)",
"columnName": "M|GT0",
"invert": false,
"omitBlank": false,
"omitError": false,
"selection": [
{
"v": {
"v": false,
"l": "false"
}
}
],
"selectBlank": false,
"selectError": false
}
],
"mode": "row-based"
},
"columnName": "4160",
"expression": "grel:forNonBlank(value, v, v, '') + forNonBlank(coalesce(cells['gt0b'].value, cells['gt0s'].value), v, '\u001fl' + v, '')",
"onError": "keep-original",
"repeat": false,
"repeatCount": 10,
"description": "Text transform on cells in column 4160 using expression grel:forNonBlank(value, v, v, '') + forNonBlank(coalesce(cells['gt0b'].value, cells['gt0s'].value), v, '\u001fl' + v, '')"
}
]

View File

@ -32,6 +32,8 @@ if(row.index - row.record.fromRowIndex == 0,
+ forNonBlank(cells['4062'].value, v, '034I ' + 'a' + v + '\n', '') + forNonBlank(cells['4062'].value, v, '034I ' + 'a' + v + '\n', '')
+ forNonBlank(cells['4063'].value, v, '034K ' + 'a' + v + '\n', '') + forNonBlank(cells['4063'].value, v, '034K ' + 'a' + v + '\n', '')
+ forNonBlank(cells['4026'].value, v, '035E ' + 'a' + v + '\n', '') + forNonBlank(cells['4026'].value, v, '035E ' + 'a' + v + '\n', '')
+ forNonBlank(cells['415X'].value, v, forEachIndex(v.split('␟'), i, x, '036C/0' + i + ' ' + x + '\n').join(''), '')
+ forNonBlank(cells['4160'].value, v, '036D ' + v + '\n', '')
+ forNonBlank(cells['4204'].value, v, '037C ' + v + '\n', '') + forNonBlank(cells['4204'].value, v, '037C ' + v + '\n', '')
+ forNonBlank(cells['4242'].value, v, forEach(v.split('␟'), x, '039C ' + x + '\n').join(''), '') + forNonBlank(cells['4242'].value, v, forEach(v.split('␟'), x, '039C ' + x + '\n').join(''), '')
+ forNonBlank(cells['4243'].value, v, forEach(v.split('␟'), x, '039I ' + x + '\n').join(''), '') + forNonBlank(cells['4243'].value, v, forEach(v.split('␟'), x, '039I ' + x + '\n').join(''), '')