Skip to content
Snippets Groups Projects
Commit 67386ac4 authored by Sebastian Pongratz's avatar Sebastian Pongratz :ping_pong:
Browse files

#1058737-DublettenKonfiguration Verwendung von local.rowdata

parent 932803e3
No related branches found
No related tags found
No related merge requests found
......@@ -2,6 +2,7 @@ import("Sql_lib");
import("system.neon");
import("system.vars");
var entity = vars.get("$field.ENTITY_TO_SCAN_NAME");
newWhere("DUPLICATESCANNER.ID", vars.get("$field.UID"))
.updateFields({"DUPLICATESCANNER.SCAN_PATTERN" : JSON.stringify({entity: "" + entity + "", provider: "indexP", filter: {type: "group", operator: "AND", childs: []}})}, "DUPLICATESCANNER");
\ No newline at end of file
var rowdata = vars.get("$local.rowdata");
newWhere("DUPLICATESCANNER.ID", rowdata["DUPLICATESCANNER.ID"])
.updateFields({"DUPLICATESCANNER.SCAN_PATTERN" : JSON.stringify({entity: "" + rowdata["DUPLICATESCANNER.ENTITY_TO_SCAN_NAME"] + "", provider: "indexP", filter: {type: "group", operator: "AND", childs: []}})}, "DUPLICATESCANNER");
\ No newline at end of file
import("system.vars");
let scanPattern = JSON.parse(vars.get("$field.SCAN_PATTERN"));
var rowdata = vars.get("$local.rowdata");
let scanPattern = JSON.parse(rowdata["DUPLICATESCANNER.SCAN_PATTERN"]);
if (scanPattern.provider == undefined)
{
scanPattern.provider = "indexP";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment