Skip to content
Snippets Groups Projects
Commit b5afda43 authored by Alexander Vögl's avatar Alexander Vögl
Browse files

shrink unnecessary code

parent 2d963abe
No related branches found
No related tags found
No related merge requests found
......@@ -35,7 +35,7 @@ function _get360Data(pContactId, pContextList)
for(var i = 0; i < pContextList.length; i++)
{
var res = ContextUtils.getContextDataSqlviaReadEntity(pContextList[i], pContactId);
res.data.forEach(function (row)
res.forEach(function (row)
{
var targetid = row["#UID"];
var title = row["#CONTENTTITLE"];
......@@ -52,7 +52,7 @@ function _get360Data(pContactId, pContextList)
description, // DESCRIPTION
dataDate, // DATE
dataDate, // YEAR
res.entity, // ENTITY_NAME
ContextUtils.getEntity(pContextList[i]),// ENTITY_NAME
translate.text(group) // GROUP
]);
});
......
......@@ -751,6 +751,9 @@
<title>Classification</title>
<groupable v="true" />
</entityField>
<entityField>
<name>DATE_NEW</name>
</entityField>
</entityFields>
<recordContainers>
<dbRecordContainer>
......@@ -902,6 +905,10 @@
<recordfield>CLASSIFICATIONSTORAGE.CLASSIFICATIONVALUE</recordfield>
<isFilterable v="true" />
</dbRecordFieldMapping>
<dbRecordFieldMapping>
<name>DATE_NEW.value</name>
<recordfield>SALESPROJECT.STARTDATE</recordfield>
</dbRecordFieldMapping>
</recordFieldMappings>
<filterExtensions>
<filterExtensionSet>
......
......@@ -717,10 +717,7 @@ ContextUtils.getContextDataSqlviaReadEntity = function(pContextId, pContactId)
throw new Error(translate.text("Some prereserved EntityFields which are necessary fot 360° are not available. Context: "+pContextId
+" Data: "+JSON.stringify(res)));
}
return {
"entity":ContextUtils.getEntity(pContextId),
"data": res
};
return res;
}
/**
......
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