From 15383358436a6d3967608c0d400bc4ea03995222 Mon Sep 17 00:00:00 2001 From: Felix Lohmeier Date: Sat, 14 May 2022 22:17:12 +0200 Subject: [PATCH] =?UTF-8?q?L=C3=B6schungen=20getrennt=20f=C3=BCr=20RS=20un?= =?UTF-8?q?d=20LE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/B_loeschen_unterordnungen.json | 173 +++++++++++++++- .../config/main/Z_loeschen-exemplarlose.json | 185 +++++++++++++++++- 2 files changed, 346 insertions(+), 12 deletions(-) diff --git a/alephino/config/main/B_loeschen_unterordnungen.json b/alephino/config/main/B_loeschen_unterordnungen.json index 52e590b..6c45666 100644 --- a/alephino/config/main/B_loeschen_unterordnungen.json +++ b/alephino/config/main/B_loeschen_unterordnungen.json @@ -21,6 +21,25 @@ ], "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" @@ -28,14 +47,85 @@ "baseColumnName": "M|IDN", "expression": "grel:value", "onError": "set-to-blank", - "newColumnName": "delete", - "columnInsertIndex": 3, - "description": "Create column delete at index 3 based on column M|IDN using expression grel:value" + "newColumnName": "deleteLE", + "columnInsertIndex": 1, + "description": "Create column deleteLE at index 1 based on column M|IDN using expression grel:value" + }, + { + "op": "core/column-addition", + "engineConfig": { + "facets": [ + { + "type": "list", + "name": "Starred Rows", + "expression": "row.starred", + "columnName": "", + "invert": false, + "omitBlank": false, + "omitError": false, + "selection": [ + { + "v": { + "v": true, + "l": "true" + } + } + ], + "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" + }, + "baseColumnName": "M|IDN", + "expression": "grel:value", + "onError": "set-to-blank", + "newColumnName": "deleteRS", + "columnInsertIndex": 1, + "description": "Create column deleteRS at index 1 based on column M|IDN using expression grel:value" }, { "op": "core/row-removal", "engineConfig": { "facets": [ + { + "type": "list", + "name": "File", + "expression": "value", + "columnName": "File", + "invert": false, + "omitBlank": false, + "omitError": false, + "selection": [ + { + "v": { + "v": "LE", + "l": "LE" + } + } + ], + "selectBlank": false, + "selectError": false + }, { "type": "list", "name": "M|GT0", @@ -58,7 +148,73 @@ { "type": "list", "name": "M|GT0", - "expression": "grel:forNonBlank(forNonBlank(filter(value.split('\u001f'), f, f[0] == 'L')[0].slice(1), x, x, null).cross('alephino','delete')[0],v,'delete','')", + "expression": "grel:forNonBlank(forNonBlank(filter(value.split('\u001f'), f, f[0] == 'L')[0].slice(1), x, x, null).cross('alephino','deleteLE')[0],v,'delete','')", + "columnName": "M|GT0", + "invert": false, + "omitBlank": false, + "omitError": false, + "selection": [ + { + "v": { + "v": "delete", + "l": "delete" + } + } + ], + "selectBlank": false, + "selectError": false + } + ], + "mode": "row-based" + }, + "description": "Remove rows" + }, + { + "op": "core/row-removal", + "engineConfig": { + "facets": [ + { + "type": "list", + "name": "File", + "expression": "value", + "columnName": "File", + "invert": false, + "omitBlank": false, + "omitError": false, + "selection": [ + { + "v": { + "v": "RS", + "l": "RS" + } + } + ], + "selectBlank": false, + "selectError": false + }, + { + "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": "M|GT0", + "expression": "grel:forNonBlank(forNonBlank(filter(value.split('\u001f'), f, f[0] == 'L')[0].slice(1), x, x, null).cross('alephino','deleteRS')[0],v,'delete','')", "columnName": "M|GT0", "invert": false, "omitBlank": false, @@ -81,7 +237,12 @@ }, { "op": "core/column-removal", - "columnName": "delete", - "description": "Remove column delete" + "columnName": "deleteRS", + "description": "Remove column deleteRS" + }, + { + "op": "core/column-removal", + "columnName": "deleteLE", + "description": "Remove column deleteLE" } ] diff --git a/alephino/config/main/Z_loeschen-exemplarlose.json b/alephino/config/main/Z_loeschen-exemplarlose.json index 7af6246..24963f2 100644 --- a/alephino/config/main/Z_loeschen-exemplarlose.json +++ b/alephino/config/main/Z_loeschen-exemplarlose.json @@ -21,6 +21,25 @@ ], "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" @@ -28,9 +47,61 @@ "baseColumnName": "M|GT0", "expression": "grel:value[2,11]", "onError": "set-to-blank", - "newColumnName": "gt0", - "columnInsertIndex": 67, - "description": "Create column gt0 at index 67 based on column M|GT0 using expression grel:value[2,11]" + "newColumnName": "gt0LE", + "columnInsertIndex": 58, + "description": "Create column gt0LE at index 58 based on column M|GT0 using expression grel:value[2,11]" + }, + { + "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 + }, + { + "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" + }, + "baseColumnName": "M|GT0", + "expression": "grel:value[2,11]", + "onError": "set-to-blank", + "newColumnName": "gt0RS", + "columnInsertIndex": 58, + "description": "Create column gt0RS at index 58 based on column M|GT0 using expression grel:value[2,11]" }, { "op": "core/row-removal", @@ -74,10 +145,107 @@ "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 + }, { "type": "list", "name": "M|IDN", - "expression": "grel:forNonBlank(value.cross('alephino','gt0')[0],v,'gt0','')", + "expression": "grel:forNonBlank(value.cross('alephino','gt0LE')[0],v,'gt0','')", + "columnName": "M|IDN", + "invert": false, + "omitBlank": false, + "omitError": false, + "selection": [], + "selectBlank": true, + "selectError": false + } + ], + "mode": "row-based" + }, + "description": "Remove rows" + }, + { + "op": "core/row-removal", + "engineConfig": { + "facets": [ + { + "type": "list", + "name": "M|IDN", + "expression": "isBlank(value)", + "columnName": "M|IDN", + "invert": false, + "omitBlank": false, + "omitError": false, + "selection": [ + { + "v": { + "v": false, + "l": "false" + } + } + ], + "selectBlank": false, + "selectError": false + }, + { + "type": "list", + "name": "E|001", + "expression": "grel:isBlank(row.record.cells['E|001'].value.join(''))", + "columnName": "E|001", + "invert": false, + "omitBlank": false, + "omitError": false, + "selection": [ + { + "v": { + "v": true, + "l": "true" + } + } + ], + "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 + }, + { + "type": "list", + "name": "M|IDN", + "expression": "grel:forNonBlank(value.cross('alephino','gt0RS')[0],v,'gt0','')", "columnName": "M|IDN", "invert": false, "omitBlank": false, @@ -93,7 +261,12 @@ }, { "op": "core/column-removal", - "columnName": "gt0", - "description": "Remove column gt0" + "columnName": "gt0RS", + "description": "Remove column gt0RS" + }, + { + "op": "core/column-removal", + "columnName": "gt0LE", + "description": "Remove column gt0LE" } ]