diff --git a/entity/Activity_entity/grantDeleteProcess.js b/entity/Activity_entity/grantDeleteProcess.js index b8b033f79ad04aedecbc9ae7384b631d32c70c24..1611440cc9223c1db0fb43453d0d620bc7f661e0 100644 --- a/entity/Activity_entity/grantDeleteProcess.js +++ b/entity/Activity_entity/grantDeleteProcess.js @@ -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"))); diff --git a/entity/CampaignStep_entity/grantDeleteProcess.js b/entity/CampaignStep_entity/grantDeleteProcess.js index c9a9ccc60bcbc003281bc2a7c0b3f4a73d4d51c0..e10f390c21f8c66a8d190cdd88dac9d88260fd0c 100644 --- a/entity/CampaignStep_entity/grantDeleteProcess.js +++ b/entity/CampaignStep_entity/grantDeleteProcess.js @@ -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())); diff --git a/entity/Campaign_entity/grantDeleteProcess.js b/entity/Campaign_entity/grantDeleteProcess.js index dce63260564e4432f342b0f8f279f80c1c9e9219..1c14ed3fc37da781a0422de1688f362223fe1ae2 100644 --- a/entity/Campaign_entity/grantDeleteProcess.js +++ b/entity/Campaign_entity/grantDeleteProcess.js @@ -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 diff --git a/entity/Contract_entity/grantDeleteProcess.js b/entity/Contract_entity/grantDeleteProcess.js index 7c268463d682830e4bc3aa06903e1ef46ef42437..551b9b070c74e265757521c7a47c460816cc1b77 100644 --- a/entity/Contract_entity/grantDeleteProcess.js +++ b/entity/Contract_entity/grantDeleteProcess.js @@ -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 diff --git a/entity/Employee_entity/grantDeleteProcess.js b/entity/Employee_entity/grantDeleteProcess.js index b60872d672ceaa4a6670cf90bc7c25fabc3e3fb2..e1d6c3c3c66520301af7fcc8215b6c040af0b123 100644 --- a/entity/Employee_entity/grantDeleteProcess.js +++ b/entity/Employee_entity/grantDeleteProcess.js @@ -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 diff --git a/entity/Offer_entity/grantDeleteProcess.js b/entity/Offer_entity/grantDeleteProcess.js index 93fe93b75bd1fc348deec7e37945497f823d735a..a3be3189c21a098cb8ab65f332cf1cfef565f146 100644 --- a/entity/Offer_entity/grantDeleteProcess.js +++ b/entity/Offer_entity/grantDeleteProcess.js @@ -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 diff --git a/entity/Organisation_entity/grantDeleteProcess.js b/entity/Organisation_entity/grantDeleteProcess.js index 062489e598ba0086bfb0e2cda7b5508ca688dcbd..827f19abd10f6b34004342f0671139cea6643f30 100644 --- a/entity/Organisation_entity/grantDeleteProcess.js +++ b/entity/Organisation_entity/grantDeleteProcess.js @@ -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 diff --git a/entity/Person_entity/grantDeleteProcess.js b/entity/Person_entity/grantDeleteProcess.js index 062489e598ba0086bfb0e2cda7b5508ca688dcbd..827f19abd10f6b34004342f0671139cea6643f30 100644 --- a/entity/Person_entity/grantDeleteProcess.js +++ b/entity/Person_entity/grantDeleteProcess.js @@ -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 diff --git a/entity/Product_entity/grantDeleteProcess.js b/entity/Product_entity/grantDeleteProcess.js index 2aa4ac0fb02965228032f5680f0a47803db7edd0..ceda91b855d18d79b35a1d743cc5f39a29a1942a 100644 --- a/entity/Product_entity/grantDeleteProcess.js +++ b/entity/Product_entity/grantDeleteProcess.js @@ -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 diff --git a/entity/Salesproject_entity/grantDeleteProcess.js b/entity/Salesproject_entity/grantDeleteProcess.js index fd4a209f5099de4004bfd6e5f4a75239eef1a9ac..45e83a39245a2681f23ff3b4e963ba3559c71de2 100644 --- a/entity/Salesproject_entity/grantDeleteProcess.js +++ b/entity/Salesproject_entity/grantDeleteProcess.js @@ -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 diff --git a/entity/Task_entity/grantDeleteProcess.js b/entity/Task_entity/grantDeleteProcess.js index 33915f18594e33e4aa413f9e737dd36158c312f3..091371f74225852c84eefb8c0e43a051a514a9f4 100644 --- a/entity/Task_entity/grantDeleteProcess.js +++ b/entity/Task_entity/grantDeleteProcess.js @@ -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