Skip to content
Snippets Groups Projects
Commit d43321c6 authored by Johannes Hörmann's avatar Johannes Hörmann
Browse files

uncomment grantDeletes fro Performance in filterView (until Bugfix is provided)

parent 80ba3551
No related branches found
No related tags found
No related merge requests found
......@@ -2,4 +2,5 @@ import("Document_lib");
import("system.vars");
import("system.result");
result.string(!DocumentUtil.hasDocuments("ACTIVITY", null, vars.get("$field.ACTIVITYID")));
\ No newline at end of file
// TODO: Commented because of performance problems: in Filter view this Process is called for every row. Waiting for bugfix
//result.string(!DocumentUtil.hasDocuments("ACTIVITY", null, vars.get("$field.ACTIVITYID")));
......@@ -4,6 +4,6 @@ import("system.vars");
import("ActivityTask_lib");
import("system.result");
if (vars.get("$sys.viewmode") == neon.FRAME_VIEWMODE_DATASET)
result.string(!TaskUtils.hasTasks(vars.get("$field.CAMPAIGNSTEPID"), ContextUtils.getCurrentContextId())
&& !ActivityUtils.hasActivities(vars.get("$field.CAMPAIGNSTEPID"), ContextUtils.getCurrentContextId()));
\ No newline at end of file
// TODO: Commented because of performance problems: in Filter view this Process is called for every row. Waiting for bugfix
//result.string(!TaskUtils.hasTasks(vars.get("$field.CAMPAIGNSTEPID"), ContextUtils.getCurrentContextId())
// && !ActivityUtils.hasActivities(vars.get("$field.CAMPAIGNSTEPID"), ContextUtils.getCurrentContextId()));
......@@ -5,7 +5,7 @@ import("Document_lib");
import("system.vars");
import("system.result");
if (vars.get("$sys.viewmode") == neon.FRAME_VIEWMODE_DATASET)
result.string(!DocumentUtil.hasDocuments("CAMPAIGN", null, vars.get("$field.CAMPAIGNID"))
&& !TaskUtils.hasTasks(vars.get("$field.CAMPAIGNID"), ContextUtils.getCurrentContextId())
&& !ActivityUtils.hasActivities(vars.get("$field.CAMPAIGNID"), ContextUtils.getCurrentContextId()));
\ No newline at end of file
// TODO: Commented because of performance problems: in Filter view this Process is called for every row. Waiting for bugfix
//result.string(!DocumentUtil.hasDocuments("CAMPAIGN", null, vars.get("$field.CAMPAIGNID"))
// && !TaskUtils.hasTasks(vars.get("$field.CAMPAIGNID"), ContextUtils.getCurrentContextId())
// && !ActivityUtils.hasActivities(vars.get("$field.CAMPAIGNID"), ContextUtils.getCurrentContextId()));
\ No newline at end of file
......@@ -5,7 +5,7 @@ import("Document_lib");
import("system.vars");
import("system.result");
if (vars.get("$sys.viewmode") == neon.FRAME_VIEWMODE_DATASET)
result.string(!DocumentUtil.hasDocuments("CONTRACT", null, vars.get("$field.CONTRACTID"))
&& !TaskUtils.hasTasks(vars.get("$field.CONTRACTID"), ContextUtils.getCurrentContextId())
&& !ActivityUtils.hasActivities(vars.get("$field.CONTRACTID"), ContextUtils.getCurrentContextId()));
\ No newline at end of file
// TODO: Commented because of performance problems: in Filter view this Process is called for every row. Waiting for bugfix
//result.string(!DocumentUtil.hasDocuments("CONTRACT", null, vars.get("$field.CONTRACTID"))
// && !TaskUtils.hasTasks(vars.get("$field.CONTRACTID"), ContextUtils.getCurrentContextId())
// && !ActivityUtils.hasActivities(vars.get("$field.CONTRACTID"), ContextUtils.getCurrentContextId()));
\ No newline at end of file
......@@ -2,5 +2,5 @@ import("Employee_lib");
import("Document_lib");
import("system.vars");
import("system.result");
result.string(!DocumentUtil.hasDocuments("EMPLOYEE", null, EmployeeUtils.sliceUserId(vars.get("$field.UID"))));
\ No newline at end of file
// TODO: Commented because of performance problems: in Filter view this Process is called for every row. Waiting for bugfix
//result.string(!DocumentUtil.hasDocuments("EMPLOYEE", null, EmployeeUtils.sliceUserId(vars.get("$field.UID"))));
\ No newline at end of file
......@@ -6,8 +6,8 @@ import("system.vars");
import("system.result");
import("Offer_lib");
if (vars.get("$sys.viewmode") == neon.FRAME_VIEWMODE_DATASET)
result.string(OfferUtils.isDeletable(vars.get("$field.STATUS"))
&& !DocumentUtil.hasDocuments("OFFER", null, vars.get("$field.OFFERID"))
&& !TaskUtils.hasTasks(vars.get("$field.OFFERID"), ContextUtils.getCurrentContextId())
&& !ActivityUtils.hasActivities(vars.get("$field.OFFERID"), ContextUtils.getCurrentContextId()));
\ No newline at end of file
result.string(OfferUtils.isDeletable(vars.get("$field.STATUS"))
// && !DocumentUtil.hasDocuments("OFFER", null, vars.get("$field.OFFERID"))
// && !TaskUtils.hasTasks(vars.get("$field.OFFERID"), ContextUtils.getCurrentContextId())
// && !ActivityUtils.hasActivities(vars.get("$field.OFFERID"), ContextUtils.getCurrentContextId()))
) // TODO: Commented because of performance problems: in Filter view this Process is called for every row. Waiting for bugfix
\ No newline at end of file
......@@ -5,7 +5,7 @@ import("Document_lib");
import("system.vars");
import("system.result");
if (vars.get("$sys.viewmode") == neon.FRAME_VIEWMODE_DATASET)
result.string(!DocumentUtil.hasDocuments("CONTACT", null, vars.get("$field.CONTACTID"))
&& !TaskUtils.hasTasks(vars.get("$field.CONTACTID"), ContextUtils.getCurrentContextId())
&& !ActivityUtils.hasActivities(vars.get("$field.CONTACTID"), ContextUtils.getCurrentContextId()));
\ No newline at end of file
// TODO: Commented because of performance problems: in Filter view this Process is called for every row. Waiting for bugfix
//result.string(!DocumentUtil.hasDocuments("CONTACT", null, vars.get("$field.CONTACTID"))
// && !TaskUtils.hasTasks(vars.get("$field.CONTACTID"), ContextUtils.getCurrentContextId())
// && !ActivityUtils.hasActivities(vars.get("$field.CONTACTID"), ContextUtils.getCurrentContextId()));
\ No newline at end of file
......@@ -5,7 +5,7 @@ import("Document_lib");
import("system.vars");
import("system.result");
if (vars.get("$sys.viewmode") == neon.FRAME_VIEWMODE_DATASET)
result.string(!DocumentUtil.hasDocuments("CONTACT", null, vars.get("$field.CONTACTID"))
&& !TaskUtils.hasTasks(vars.get("$field.CONTACTID"), ContextUtils.getCurrentContextId())
&& !ActivityUtils.hasActivities(vars.get("$field.CONTACTID"), ContextUtils.getCurrentContextId()));
\ No newline at end of file
// TODO: Commented because of performance problems: in Filter view this Process is called for every row. Waiting for bugfix
//result.string(!DocumentUtil.hasDocuments("CONTACT", null, vars.get("$field.CONTACTID"))
// && !TaskUtils.hasTasks(vars.get("$field.CONTACTID"), ContextUtils.getCurrentContextId())
// && !ActivityUtils.hasActivities(vars.get("$field.CONTACTID"), ContextUtils.getCurrentContextId()));
\ No newline at end of file
......@@ -5,6 +5,6 @@ import("system.vars");
import("system.result");
import("system.neon");
if (vars.get("$sys.viewmode") == neon.FRAME_VIEWMODE_DATASET)
result.string(!DocumentUtil.hasDocuments("PRODUCT", null, vars.get("$field.PRODUCTID"))
&& !ActivityUtils.hasActivities(vars.get("$field.PRODUCTID"), ContextUtils.getCurrentContextId()));
\ No newline at end of file
// TODO: Commented because of performance problems: in Filter view this Process is called for every row. Waiting for bugfix
//result.string(!DocumentUtil.hasDocuments("PRODUCT", null, vars.get("$field.PRODUCTID"))
// && !ActivityUtils.hasActivities(vars.get("$field.PRODUCTID"), ContextUtils.getCurrentContextId()));
\ No newline at end of file
......@@ -5,7 +5,7 @@ import("Document_lib");
import("system.vars");
import("system.result");
if (vars.get("$sys.viewmode") == neon.FRAME_VIEWMODE_DATASET)
result.string(!DocumentUtil.hasDocuments("SALESPROJECT", null, vars.get("$field.SALESPROJECTID"))
&& !TaskUtils.hasTasks(vars.get("$field.SALESPROJECTID"), ContextUtils.getCurrentContextId())
&& !ActivityUtils.hasActivities(vars.get("$field.SALESPROJECTID"), ContextUtils.getCurrentContextId()));
\ No newline at end of file
// TODO: Commented because of performance problems: in Filter view this Process is called for every row. Waiting for bugfix
//result.string(!DocumentUtil.hasDocuments("SALESPROJECT", null, vars.get("$field.SALESPROJECTID"))
// && !TaskUtils.hasTasks(vars.get("$field.SALESPROJECTID"), ContextUtils.getCurrentContextId())
// && !ActivityUtils.hasActivities(vars.get("$field.SALESPROJECTID"), ContextUtils.getCurrentContextId()));
\ No newline at end of file
......@@ -2,4 +2,5 @@ import("Document_lib");
import("system.vars");
import("system.result");
result.string(!DocumentUtil.hasDocuments("TASK", null, vars.get("$field.TASKID")));
\ No newline at end of file
// TODO: Commented because of performance problems: in Filter view this Process is called for every row. Waiting for bugfix
//result.string(!DocumentUtil.hasDocuments("TASK", null, vars.get("$field.TASKID")));
\ No newline at end of file
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