diff --git a/entity/Activity_entity/recordcontainers/db/filterextensions/isunlinked/filterConditionProcess.js b/entity/Activity_entity/recordcontainers/db/filterextensions/isunlinked/filterConditionProcess.js index 3e01b63784b6fc8afc75c743bfdcff5b64ad2268..4114f9a3389dba072a6e50478ab5e837a0d632e1 100644 --- a/entity/Activity_entity/recordcontainers/db/filterextensions/isunlinked/filterConditionProcess.js +++ b/entity/Activity_entity/recordcontainers/db/filterextensions/isunlinked/filterConditionProcess.js @@ -9,15 +9,16 @@ var rawvalue = vars.get("$local.rawvalue"); var operator2 = vars.get("$local.operator2"); var sqlCond = ""; -if(operator == "1" && rawvalue == "1" || operator == "2" && rawvalue == "0") +rawvalue = (rawvalue == "true"); + +if(operator == "1" && !rawvalue || operator == "2" && rawvalue ) operator2 = SqlBuilder.IN(); -else if(operator == "1" && rawvalue == "0" || operator == "2" && rawvalue == "1") +else if(operator == "1" && rawvalue || operator == "2" && !rawvalue) operator2 = SqlBuilder.NOT_IN(); else sqlCond = "1=1"; if (sqlCond == "") - sqlCond = new SqlBuilder().where("ACTIVITY.ACTIVITYID", new SqlBuilder().select("ACTIVITYLINK.ACTIVITY_ID").from("ACTIVITYLINK").groupBy("ACTIVITYLINK.ACTIVITY_ID"), operator2); - + sqlCond = new SqlBuilder().where("ACTIVITY.ACTIVITYID", newSelect("ACTIVITYLINK.ACTIVITY_ID").from("ACTIVITYLINK").groupBy("ACTIVITYLINK.ACTIVITY_ID"), operator2).toString(); result.string(sqlCond); \ No newline at end of file diff --git a/neonView/ActivityUniversalFileProcessorFilter_view/ActivityUniversalFileProcessorFilter_view.aod b/neonView/ActivityUniversalFileProcessorFilter_view/ActivityUniversalFileProcessorFilter_view.aod index a40577f24e623131aba304a68873f02eb1055f0f..eaec7e7ddba0db1de1262c4b98c9c9bb7202877e 100644 --- a/neonView/ActivityUniversalFileProcessorFilter_view/ActivityUniversalFileProcessorFilter_view.aod +++ b/neonView/ActivityUniversalFileProcessorFilter_view/ActivityUniversalFileProcessorFilter_view.aod @@ -2,6 +2,7 @@ <neonView xmlns="http://www.adito.de/2018/ao/Model" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" VERSION="1.1.6" xsi:schemaLocation="http://www.adito.de/2018/ao/Model adito://models/xsd/neonView/1.1.6"> <name>ActivityUniversalFileProcessorFilter_view</name> <majorModelMode>DISTRIBUTED</majorModelMode> + <filterable v="true" /> <layout> <groupLayout> <name>layout</name>