Skip to content
Snippets Groups Projects
Commit ba7feab2 authored by Tobias Feldmann's avatar Tobias Feldmann
Browse files

360 degree in person and icons

parent 14e63f16
No related branches found
No related tags found
No related merge requests found
Showing
with 108 additions and 2 deletions
......@@ -68,6 +68,14 @@
<entityProvider>
<name>PersonObjects</name>
<fieldType>DEPENDENCY_IN</fieldType>
<dependencies>
<entityDependency>
<name>1d931ae6-137a-4db3-b02c-eb8872d349c6</name>
<entityName>Person_entity</entityName>
<fieldName>360DegreeObjects</fieldName>
<isConsumer v="false" />
</entityDependency>
</dependencies>
<children>
<entityParameter>
<name>ObjectType_param</name>
......@@ -84,7 +92,7 @@
<entityActionGroup>
<name>newModule</name>
<title>New module</title>
<iconId>VAADIN:PLUS</iconId>
<iconId>VAADIN:PLUS_CIRCLE</iconId>
<children>
<entityActionField>
<name>newOffer</name>
......@@ -92,6 +100,7 @@
<title>Offer</title>
<onActionProcess>%aditoprj%/entity/360Degree_entity/entityfields/newmodule/children/newoffer/onActionProcess.js</onActionProcess>
<iconId>VAADIN:CART</iconId>
<stateProcess>%aditoprj%/entity/360Degree_entity/entityfields/newmodule/children/newoffer/stateProcess.js</stateProcess>
</entityActionField>
<entityActionField>
<name>newSalesproject</name>
......@@ -99,6 +108,7 @@
<title>Salesproject</title>
<onActionProcess>%aditoprj%/entity/360Degree_entity/entityfields/newmodule/children/newsalesproject/onActionProcess.js</onActionProcess>
<iconId>VAADIN:BOOK_DOLLAR</iconId>
<stateProcess>%aditoprj%/entity/360Degree_entity/entityfields/newmodule/children/newsalesproject/stateProcess.js</stateProcess>
</entityActionField>
<entityActionField>
<name>newContract</name>
......@@ -107,9 +117,16 @@
<onActionProcess>%aditoprj%/entity/360Degree_entity/entityfields/newmodule/children/newcontract/onActionProcess.js</onActionProcess>
<iconId>VAADIN:FILE_TEXT</iconId>
<iconIdProcess>%aditoprj%/entity/360Degree_entity/entityfields/newmodule/children/newcontract/iconIdProcess.js</iconIdProcess>
<stateProcess>%aditoprj%/entity/360Degree_entity/entityfields/newmodule/children/newcontract/stateProcess.js</stateProcess>
</entityActionField>
</children>
</entityActionGroup>
<entityField>
<name>ICON</name>
<contentType>IMAGE</contentType>
<searchable v="false" />
<valueProcess>%aditoprj%/entity/360Degree_entity/entityfields/icon/valueProcess.js</valueProcess>
</entityField>
</entityFields>
<recordContainers>
<jDitoRecordContainer>
......
import("system.vars");
import("system.result");
import("system.neon");
var context = vars.getString("$field.TARGET_CONTEXT");
switch (context)
{
case "Salesproject":
result.string("VAADIN:BOOK_DOLLAR");
break;
case "Offer":
result.string("VAADIN:CART");
break;
case "Contract":
result.string("VAADIN:FILE_TEXT");
break;
}
\ No newline at end of file
import("system.result");
import("system.vars");
import("system.neon");
import("system.logging");
var contextList = JSON.parse(vars.getString("$param.ObjectType_param"));
var found = false;
contextList.forEach(function (context)
{
if(context == "Contract")
found = true;
});
if(found)
result.string(neon.COMPONENTSTATE_AUTO);
else
result.string(neon.COMPONENTSTATE_INVISIBLE);
\ No newline at end of file
import("system.vars");
import("system.neon");
import("system.result");
var contextList = JSON.parse(vars.getString("$param.ObjectType_param"));
var found = false;
contextList.forEach(function (context)
{
if(context == "Offer")
found = true;
});
if(found)
result.string(neon.COMPONENTSTATE_AUTO);
else
result.string(neon.COMPONENTSTATE_INVISIBLE);
\ No newline at end of file
import("system.vars");
import("system.neon");
import("system.result");
var contextList = JSON.parse(vars.getString("$param.ObjectType_param"));
var found = false;
contextList.forEach(function (context)
{
if(context == "Salesproject")
found = true;
});
if(found)
result.string(neon.COMPONENTSTATE_AUTO);
else
result.string(neon.COMPONENTSTATE_INVISIBLE);
\ No newline at end of file
import("system.vars");
import("system.result");
result.object(["Salesproject", "Offer", "Contract"]);
\ No newline at end of file
result.object(["Offer", "Contract"]);
\ No newline at end of file
......@@ -742,6 +742,22 @@ Usually this is used for filtering COMMUNICATION-entries by a specified contact
<entityField>
<name>ORGANISATION_NAME</name>
</entityField>
<entityConsumer>
<name>360DegreeObjects</name>
<title>360 Degree</title>
<fieldType>DEPENDENCY_OUT</fieldType>
<dependency>
<name>dependency</name>
<entityName>360Degree_entity</entityName>
<fieldName>PersonObjects</fieldName>
</dependency>
<children>
<entityParameter>
<name>ObjectRowId_param</name>
<valueProcess>%aditoprj%/entity/Person_entity/entityfields/360degreeobjects/children/objectrowid_param/valueProcess.js</valueProcess>
</entityParameter>
</children>
</entityConsumer>
</entityFields>
<recordContainers>
<dbRecordContainer>
......
import("system.vars");
import("system.result");
result.string(vars.getString("$field.PERSONID"));
\ No newline at end of file
......@@ -14,6 +14,7 @@
<favoriteActionGroup2>newModule</favoriteActionGroup2>
<titleField>TITLE</titleField>
<descriptionField>DATE</descriptionField>
<iconField>ICON</iconField>
<defaultGroupFields>
<element>CONTEXT_NAME</element>
</defaultGroupFields>
......
......@@ -19,6 +19,11 @@
<entityField>Activities</entityField>
<view>ActivityFilter_view</view>
</neonViewReference>
<neonViewReference>
<name>e7b8c90f-dc8d-40f1-b4db-1493f845026f</name>
<entityField>360DegreeObjects</entityField>
<view>360DegreeFilter_view</view>
</neonViewReference>
<neonViewReference>
<name>573d2b77-f948-47bc-bac1-621dd824c697</name>
<entityField>Tasks</entityField>
......
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