2021-03-05 17:15:51 +01:00
[
2021-03-06 00:18:50 +01:00
{
"op" : "core/column-addition" ,
"engineConfig" : {
"facets" : [ ] ,
"mode" : "record-based"
} ,
"baseColumnName" : "M|MEDNR" ,
"expression" : "grel:cells['File'].value + value" ,
"onError" : "set-to-blank" ,
"newColumnName" : "id" ,
"columnInsertIndex" : 3 ,
"description" : "Create column id at index 3 based on column M|MEDNR using expression grel:cells['File'].value + value"
} ,
2021-03-05 17:15:51 +01:00
{
"op" : "core/column-addition" ,
"engineConfig" : {
"facets" : [
{
"type" : "list" ,
"name" : "M|BANDB" ,
"expression" : "grel:or(isNonBlank(cells['M|BANDB'].value), isNonBlank(cells['M|BANDN'].value))" ,
"columnName" : "M|BANDB" ,
"invert" : false ,
"omitBlank" : false ,
"omitError" : false ,
"selection" : [
{
"v" : {
"v" : true ,
"l" : "true"
}
}
] ,
"selectBlank" : false ,
"selectError" : false
} ,
{
"type" : "list" ,
"name" : "M|NRPRE" ,
"expression" : "isBlank(value)" ,
"columnName" : "M|NRPRE" ,
"invert" : false ,
"omitBlank" : false ,
"omitError" : false ,
"selection" : [
{
"v" : {
"v" : false ,
"l" : "false"
}
}
] ,
"selectBlank" : false ,
"selectError" : false
}
] ,
"mode" : "row-based"
} ,
"baseColumnName" : "M|NRPRE" ,
2021-03-06 00:18:50 +01:00
"expression" : "grel:with(cells['File'].value + value, v, forEach(v.cross('bibliotheca','id'), r, if(r.cells['M|ART'].value == 'G', r.cells['id'].value, null)).join(','))" ,
2021-03-05 17:15:51 +01:00
"onError" : "set-to-blank" ,
"newColumnName" : "ueber" ,
2021-03-06 00:18:50 +01:00
"columnInsertIndex" : 3 ,
"description" : "Create column ueber at index 72 based on column M|NRPRE using expression grel:with(cells['File'].value + value, v, forEach(v.cross('bibliotheca','id'), r, if(r.cells['M|ART'].value == 'G', r.cells['id'].value, null)).join(','))"
2021-03-05 17:15:51 +01:00
} ,
{
"op" : "core/column-addition" ,
"engineConfig" : {
"facets" : [ ] ,
"mode" : "row-based"
} ,
2021-03-06 00:18:50 +01:00
"baseColumnName" : "id" ,
"expression" : "grel:forEach(value.cross('bibliotheca','ueber'), r, r.cells['id'].value).join(',')" ,
2021-03-05 17:15:51 +01:00
"onError" : "set-to-blank" ,
"newColumnName" : "unter" ,
2021-03-06 00:18:50 +01:00
"columnInsertIndex" : 3 ,
"description" : "Create column unter at index 1 based on column M|MEDNR using expression grel:forEach(value.cross('bibliotheca','ueber'), r, r.cells['id'].value).join(',')"
2021-03-05 17:15:51 +01:00
} ,
{
"op" : "core/row-removal" ,
"engineConfig" : {
"facets" : [
{
"type" : "list" ,
"name" : "M|ART" ,
"expression" : "value" ,
"columnName" : "M|ART" ,
"invert" : false ,
"omitBlank" : false ,
"omitError" : false ,
"selection" : [
{
"v" : {
"v" : "G" ,
"l" : "G"
}
}
] ,
"selectBlank" : false ,
"selectError" : false
} ,
{
"type" : "list" ,
"name" : "unter" ,
"expression" : "isBlank(value)" ,
"columnName" : "unter" ,
"invert" : false ,
"omitBlank" : false ,
"omitError" : false ,
"selection" : [
{
"v" : {
"v" : true ,
"l" : "true"
}
}
] ,
"selectBlank" : false ,
"selectError" : false
}
] ,
"mode" : "row-based"
} ,
"description" : "Remove rows"
}
]