Skip to content
Snippets Groups Projects
Commit e6e6f86a authored by Johannes Goderbauer's avatar Johannes Goderbauer
Browse files

Merge branch 'WarningsDependency' into '2021.0.0'

WarningsDependency Warnings behohen

See merge request xrm/basic!587
parents 4006fc4b 11431721
No related branches found
No related tags found
No related merge requests found
import("Sql_lib"); import("Sql_lib");
import("system.favorite");
function Dependency(){} function Dependency(){}
...@@ -228,6 +229,20 @@ Dependency.mapping = function () ...@@ -228,6 +229,20 @@ Dependency.mapping = function ()
}, },
"getUIDsfn" : Dependency.defaultFunctionForRelation("ACTIVITYLINK", "OBJECT_ROWID", "SALESORDERID", "Order", "SALESORDER", "ACTIVITY_ID") "getUIDsfn" : Dependency.defaultFunctionForRelation("ACTIVITYLINK", "OBJECT_ROWID", "SALESORDERID", "Order", "SALESORDER", "ACTIVITY_ID")
}, },
"Organisation_entity" : {
"options" : {
"isObservable" : true
},
"getUIDsfn" : function (pRowData, pChangedData) {
var tableField = "SALESORDER.CONTACT_ID";
var res = [];
if (pRowData[tableField])
res.push(pRowData[tableField])
if (pChangedData[tableField] && pChangedData[tableField] != pRowData[tableField])
res.push(pChangedData[tableField])
return res;
}
},
"Task_entity" : { "Task_entity" : {
"options" : { "options" : {
"isObservable" : true "isObservable" : true
...@@ -707,42 +722,6 @@ Dependency.mapping = function () ...@@ -707,42 +722,6 @@ Dependency.mapping = function ()
"getUIDsfn" : Dependency.defaultFunctionForField("LEAD.LEADIMPORT_ID") "getUIDsfn" : Dependency.defaultFunctionForField("LEAD.LEADIMPORT_ID")
} }
} }
,"Order_entity": {
"Organisation_entity" : {
"options" : {
"isObservable" : true
},
"getUIDsfn" : function (pRowData, pChangedData) {
var tableField = "SALESORDER.CONTACT_ID";
var res = [];
if (pRowData[tableField])
res.push(pRowData[tableField])
if (pChangedData[tableField] && pChangedData[tableField] != pRowData[tableField])
res.push(pChangedData[tableField])
return res;
}
}
}
,"AttributeRelation_entity": {
"Organisation_entity" : {
"options" : {
"isObservable" : true
},
"getUIDsfn" : Dependency.defaultFunctionForRelation("AB_ATTRIBUTERELATION", "AB_ATTRIBUTERELATIONID", "AB_ATTRIBUTERELATIONID", "Organisation")
},
"Activity_entity" : {
"options" : {
"isObservable" : true
},
"getUIDsfn" : Dependency.defaultFunctionForRelation("AB_ATTRIBUTERELATION", "AB_ATTRIBUTERELATIONID", "AB_ATTRIBUTERELATIONID", "Activity")
},
"Salesproject_entity" : {
"options" : {
"isObservable" : true
},
"getUIDsfn" : Dependency.defaultFunctionForRelation("AB_ATTRIBUTERELATION", "AB_ATTRIBUTERELATIONID", "AB_ATTRIBUTERELATIONID", "Salesproject")
}
}
}; };
}; };
/** /**
......
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