2021-03-04 16:30:52 +01:00
[
{
"op" : "core/column-addition" ,
"engineConfig" : {
"facets" : [
{
"type" : "list" ,
"name" : "tmp" ,
"expression" : "isBlank(value)" ,
"columnName" : "tmp" ,
"invert" : false ,
"omitBlank" : false ,
"omitError" : false ,
"selection" : [
{
"v" : {
"v" : false ,
"l" : "false"
}
}
] ,
"selectBlank" : false ,
"selectError" : false
}
] ,
"mode" : "row-based"
} ,
"baseColumnName" : "M|URH1" ,
"expression" : "grel:[ cells['M|URH1'].value, cells['M|URH2'].value, cells['M|URH3'].value ].join('␟')" ,
"onError" : "set-to-blank" ,
"newColumnName" : "3110" ,
2021-03-06 00:18:50 +01:00
"columnInsertIndex" : 3 ,
"description" : "Create column 3110 at index 3 based on column M|URH1 using expression grel:[ cells['M|URH1'].value, cells['M|URH2'].value, cells['M|URH3'].value ].join('␟')"
2021-03-04 16:30:52 +01:00
} ,
{
"op" : "core/text-transform" ,
"engineConfig" : {
"facets" : [
{
"type" : "list" ,
"name" : "tmp" ,
"expression" : "isBlank(value)" ,
"columnName" : "tmp" ,
"invert" : false ,
"omitBlank" : false ,
"omitError" : false ,
"selection" : [
{
"v" : {
"v" : false ,
"l" : "false"
}
}
] ,
"selectBlank" : false ,
"selectError" : false
}
] ,
"mode" : "row-based"
} ,
"columnName" : "3110" ,
2021-04-12 22:23:05 +02:00
"expression" : "grel:forEach(value.split('␟'),v,v.replace(/\\s(¬?|::)\\[.*/,'')).join('␟')" ,
2021-03-04 16:30:52 +01:00
"onError" : "keep-original" ,
"repeat" : false ,
"repeatCount" : 10 ,
2021-04-12 22:23:05 +02:00
"description" : "Text transform on cells in column 3110 using expression grel:forEach(value.split('␟'),v,v.replace(/\\s(¬?|::)\\[.*/,'')).join('␟')"
2021-03-04 16:30:52 +01:00
} ,
{
"op" : "core/text-transform" ,
"engineConfig" : {
"facets" : [
{
"type" : "list" ,
"name" : "tmp" ,
"expression" : "isBlank(value)" ,
"columnName" : "tmp" ,
"invert" : false ,
"omitBlank" : false ,
"omitError" : false ,
"selection" : [
{
"v" : {
"v" : false ,
"l" : "false"
}
}
] ,
"selectBlank" : false ,
"selectError" : false
}
] ,
"mode" : "row-based"
} ,
"columnName" : "3110" ,
2021-04-12 11:06:20 +02:00
"expression" : "grel:forEach(value.split('␟'), v,\nforNonBlank(v.split('/')[0].replace(/<.*>/,'').trim(), x, '\u001fa' + x, '')\n+ forNonBlank(v.split('/')[0].find(/<.+>/)[0].replace('<','').replace('>',''), x, '\u001fx' + x, '')\n+ forNonBlank(v.split('/')[1].trim(), x, '\u001fb' + x, '')\n).join('␟')" ,
2021-03-04 16:30:52 +01:00
"onError" : "keep-original" ,
"repeat" : false ,
"repeatCount" : 10 ,
2021-04-12 11:06:20 +02:00
"description" : "Text transform on cells in column 3110 using expression grel:forEach(value.split('␟'), v,\nforNonBlank(v.split('/')[0].replace(/<.*>/,'').trim(), x, '\u001fa' + x, '')\n+ forNonBlank(v.split('/')[0].find(/<.+>/)[0].replace('<','').replace('>',''), x, '\u001fx' + x, '')\n+ forNonBlank(v.split('/')[1].trim(), x, '\u001fb' + x, '')\n).join('␟')"
2021-03-04 16:30:52 +01:00
}
]