Skip to content
Snippets Groups Projects
Commit 7a17f60b authored by S.Listl's avatar S.Listl
Browse files

Action icons added

parent 1bf230bf
No related branches found
No related tags found
No related merge requests found
...@@ -292,6 +292,7 @@ ...@@ -292,6 +292,7 @@
<fieldType>ACTION</fieldType> <fieldType>ACTION</fieldType>
<title>New task</title> <title>New task</title>
<onActionProcess>%aditoprj%/entity/Activity_entity/entityfields/newtask/onActionProcess.js</onActionProcess> <onActionProcess>%aditoprj%/entity/Activity_entity/entityfields/newtask/onActionProcess.js</onActionProcess>
<actionOrder v="1" />
<iconId>VAADIN:TASKS</iconId> <iconId>VAADIN:TASKS</iconId>
</entityActionField> </entityActionField>
<entityParameter> <entityParameter>
...@@ -362,6 +363,7 @@ ...@@ -362,6 +363,7 @@
<fieldType>ACTION</fieldType> <fieldType>ACTION</fieldType>
<title>New offer</title> <title>New offer</title>
<onActionProcess>%aditoprj%/entity/Activity_entity/entityfields/newoffer/onActionProcess.js</onActionProcess> <onActionProcess>%aditoprj%/entity/Activity_entity/entityfields/newoffer/onActionProcess.js</onActionProcess>
<actionOrder v="0" />
<iconId>VAADIN:CART</iconId> <iconId>VAADIN:CART</iconId>
</entityActionField> </entityActionField>
<entityConsumer> <entityConsumer>
......
...@@ -2,7 +2,10 @@ import("system.neon"); ...@@ -2,7 +2,10 @@ import("system.neon");
import("system.vars"); import("system.vars");
import("Entity_lib"); import("Entity_lib");
var mediumId = ProcessHandlingUtils.getOnValidationValue(vars.get("$field.MEDIUM_ID")); var isInternet = ProcessHandlingUtils.getOnValidationValue(vars.get("$field.MEDIUM_ID")) == "d08956b8-369e-4b65-88fa-1c37b3368ae3";
var internetPreset = "https://";
if (mediumId == "d08956b8-369e-4b65-88fa-1c37b3368ae3" && vars.get("$field.ADDR") == "") //medium == Internet if (isInternet && vars.get("$field.ADDR") == "") //medium == Internet
neon.setFieldValue("$field.ADDR", "https://"); neon.setFieldValue("$field.ADDR", internetPreset);
\ No newline at end of file else if (!isInternet && vars.get("$field.ADDR") == internetPreset)
neon.setFieldValue("$field.ADDR", "");
\ No newline at end of file
...@@ -140,6 +140,7 @@ ...@@ -140,6 +140,7 @@
<fieldType>ACTION</fieldType> <fieldType>ACTION</fieldType>
<title>New offer version</title> <title>New offer version</title>
<onActionProcess>%aditoprj%/entity/Offer_entity/entityfields/newofferversion/onActionProcess.js</onActionProcess> <onActionProcess>%aditoprj%/entity/Offer_entity/entityfields/newofferversion/onActionProcess.js</onActionProcess>
<iconId>VAADIN:CART</iconId>
</entityActionField> </entityActionField>
<entityField> <entityField>
<name>NET</name> <name>NET</name>
...@@ -200,6 +201,7 @@ ...@@ -200,6 +201,7 @@
<fieldType>ACTION</fieldType> <fieldType>ACTION</fieldType>
<title>Copy offer</title> <title>Copy offer</title>
<onActionProcess>%aditoprj%/entity/Offer_entity/entityfields/copyoffer/onActionProcess.js</onActionProcess> <onActionProcess>%aditoprj%/entity/Offer_entity/entityfields/copyoffer/onActionProcess.js</onActionProcess>
<iconId>VAADIN:COPY</iconId>
</entityActionField> </entityActionField>
<entityField> <entityField>
<name>VERSNR</name> <name>VERSNR</name>
...@@ -246,6 +248,7 @@ ...@@ -246,6 +248,7 @@
<fieldType>ACTION</fieldType> <fieldType>ACTION</fieldType>
<title>Print Offer</title> <title>Print Offer</title>
<onActionProcess>%aditoprj%/entity/Offer_entity/entityfields/printoffer/onActionProcess.js</onActionProcess> <onActionProcess>%aditoprj%/entity/Offer_entity/entityfields/printoffer/onActionProcess.js</onActionProcess>
<iconId>VAADIN:FILE_TEXT_O</iconId>
</entityActionField> </entityActionField>
<entityField> <entityField>
<name>CONTACT_ORG_ID</name> <name>CONTACT_ORG_ID</name>
...@@ -374,6 +377,7 @@ ...@@ -374,6 +377,7 @@
<fieldType>ACTION</fieldType> <fieldType>ACTION</fieldType>
<title>Create receipt</title> <title>Create receipt</title>
<onActionProcess>%aditoprj%/entity/Offer_entity/entityfields/neworder/onActionProcess.js</onActionProcess> <onActionProcess>%aditoprj%/entity/Offer_entity/entityfields/neworder/onActionProcess.js</onActionProcess>
<iconId>VAADIN:DOLLAR</iconId>
</entityActionField> </entityActionField>
<entityConsumer> <entityConsumer>
<name>Languages</name> <name>Languages</name>
...@@ -436,6 +440,12 @@ ...@@ -436,6 +440,12 @@
<fieldName>Offers</fieldName> <fieldName>Offers</fieldName>
<isConsumer v="false" /> <isConsumer v="false" />
</entityDependency> </entityDependency>
<entityDependency>
<name>b308795f-3c81-4e60-99ca-3b5f8e82f62a</name>
<entityName>Organisation_entity</entityName>
<fieldName>Offers</fieldName>
<isConsumer v="false" />
</entityDependency>
</dependencies> </dependencies>
<children> <children>
<entityParameter> <entityParameter>
......
...@@ -135,6 +135,7 @@ ...@@ -135,6 +135,7 @@
<fieldType>ACTION</fieldType> <fieldType>ACTION</fieldType>
<title>New receipt version</title> <title>New receipt version</title>
<onActionProcess>%aditoprj%/entity/Order_entity/entityfields/neworderversion/onActionProcess.js</onActionProcess> <onActionProcess>%aditoprj%/entity/Order_entity/entityfields/neworderversion/onActionProcess.js</onActionProcess>
<iconId>VAADIN:DOLLAR</iconId>
</entityActionField> </entityActionField>
<entityField> <entityField>
<name>NET</name> <name>NET</name>
...@@ -169,6 +170,7 @@ ...@@ -169,6 +170,7 @@
<fieldType>ACTION</fieldType> <fieldType>ACTION</fieldType>
<title>Copy receipt</title> <title>Copy receipt</title>
<onActionProcess>%aditoprj%/entity/Order_entity/entityfields/neworder/onActionProcess.js</onActionProcess> <onActionProcess>%aditoprj%/entity/Order_entity/entityfields/neworder/onActionProcess.js</onActionProcess>
<iconId>VAADIN:COPY</iconId>
</entityActionField> </entityActionField>
<entityField> <entityField>
<name>VERSNR</name> <name>VERSNR</name>
......
...@@ -295,6 +295,7 @@ ...@@ -295,6 +295,7 @@
<documentation>%aditoprj%/entity/Organisation_entity/entityfields/openeditdefaultsview/documentation.adoc</documentation> <documentation>%aditoprj%/entity/Organisation_entity/entityfields/openeditdefaultsview/documentation.adoc</documentation>
<title>Edit defaults</title> <title>Edit defaults</title>
<onActionProcess>%aditoprj%/entity/Organisation_entity/entityfields/openeditdefaultsview/onActionProcess.js</onActionProcess> <onActionProcess>%aditoprj%/entity/Organisation_entity/entityfields/openeditdefaultsview/onActionProcess.js</onActionProcess>
<actionOrder v="1" />
<iconId>NEON:WRENCH</iconId> <iconId>NEON:WRENCH</iconId>
</entityActionField> </entityActionField>
<entityActionField> <entityActionField>
...@@ -303,6 +304,7 @@ ...@@ -303,6 +304,7 @@
<documentation>%aditoprj%/entity/Organisation_entity/entityfields/newoffer/documentation.adoc</documentation> <documentation>%aditoprj%/entity/Organisation_entity/entityfields/newoffer/documentation.adoc</documentation>
<title>New offer</title> <title>New offer</title>
<onActionProcess>%aditoprj%/entity/Organisation_entity/entityfields/newoffer/onActionProcess.js</onActionProcess> <onActionProcess>%aditoprj%/entity/Organisation_entity/entityfields/newoffer/onActionProcess.js</onActionProcess>
<actionOrder v="2" />
<iconId>VAADIN:CART</iconId> <iconId>VAADIN:CART</iconId>
</entityActionField> </entityActionField>
<entityField> <entityField>
...@@ -359,6 +361,7 @@ ...@@ -359,6 +361,7 @@
<fieldType>ACTION</fieldType> <fieldType>ACTION</fieldType>
<title>New activity</title> <title>New activity</title>
<onActionProcess>%aditoprj%/entity/Organisation_entity/entityfields/newactivity/onActionProcess.js</onActionProcess> <onActionProcess>%aditoprj%/entity/Organisation_entity/entityfields/newactivity/onActionProcess.js</onActionProcess>
<actionOrder v="0" />
<iconId>NEON:HISTORY</iconId> <iconId>NEON:HISTORY</iconId>
</entityActionField> </entityActionField>
<entityActionField> <entityActionField>
...@@ -366,6 +369,7 @@ ...@@ -366,6 +369,7 @@
<fieldType>ACTION</fieldType> <fieldType>ACTION</fieldType>
<title>Customer Base Sheet</title> <title>Customer Base Sheet</title>
<onActionProcess>%aditoprj%/entity/Organisation_entity/entityfields/orgreport/onActionProcess.js</onActionProcess> <onActionProcess>%aditoprj%/entity/Organisation_entity/entityfields/orgreport/onActionProcess.js</onActionProcess>
<actionOrder v="4" />
<iconId>VAADIN:FILE_TEXT_O</iconId> <iconId>VAADIN:FILE_TEXT_O</iconId>
</entityActionField> </entityActionField>
<entityConsumer> <entityConsumer>
...@@ -509,6 +513,7 @@ ...@@ -509,6 +513,7 @@
<fieldType>ACTION</fieldType> <fieldType>ACTION</fieldType>
<title>New task</title> <title>New task</title>
<onActionProcess>%aditoprj%/entity/Organisation_entity/entityfields/newtask/onActionProcess.js</onActionProcess> <onActionProcess>%aditoprj%/entity/Organisation_entity/entityfields/newtask/onActionProcess.js</onActionProcess>
<actionOrder v="3" />
<iconId>VAADIN:TASKS</iconId> <iconId>VAADIN:TASKS</iconId>
</entityActionField> </entityActionField>
<entityConsumer> <entityConsumer>
...@@ -535,6 +540,22 @@ ...@@ -535,6 +540,22 @@
</entityParameter> </entityParameter>
</children> </children>
</entityConsumer> </entityConsumer>
<entityConsumer>
<name>Offers</name>
<title>Offers</title>
<fieldType>DEPENDENCY_OUT</fieldType>
<dependency>
<name>dependency</name>
<entityName>Offer_entity</entityName>
<fieldName>ContactOffers</fieldName>
</dependency>
<children>
<entityParameter>
<name>ContactId_param</name>
<valueProcess>%aditoprj%/entity/Organisation_entity/entityfields/offers/children/contactid_param/valueProcess.js</valueProcess>
</entityParameter>
</children>
</entityConsumer>
</entityFields> </entityFields>
<recordContainers> <recordContainers>
<dbRecordContainer> <dbRecordContainer>
......
import("system.vars");
import("system.result");
result.string(vars.get("$field.CONTACTID"));
\ No newline at end of file
...@@ -248,6 +248,7 @@ ...@@ -248,6 +248,7 @@
<title>New offer</title> <title>New offer</title>
<description>Opens the Offer context in NEW-Mode and fills salesproject and contact.</description> <description>Opens the Offer context in NEW-Mode and fills salesproject and contact.</description>
<onActionProcess>%aditoprj%/entity/Salesproject_entity/entityfields/newoffer/onActionProcess.js</onActionProcess> <onActionProcess>%aditoprj%/entity/Salesproject_entity/entityfields/newoffer/onActionProcess.js</onActionProcess>
<iconId>VAADIN:CART</iconId>
</entityActionField> </entityActionField>
<entityConsumer> <entityConsumer>
<name>Timetrackings</name> <name>Timetrackings</name>
...@@ -351,6 +352,7 @@ ...@@ -351,6 +352,7 @@
<title>New time tracking</title> <title>New time tracking</title>
<description>Opens the time tracking context in new-mode for the selected salesproject</description> <description>Opens the time tracking context in new-mode for the selected salesproject</description>
<onActionProcess>%aditoprj%/entity/Salesproject_entity/entityfields/newtimetracking/onActionProcess.js</onActionProcess> <onActionProcess>%aditoprj%/entity/Salesproject_entity/entityfields/newtimetracking/onActionProcess.js</onActionProcess>
<iconId>VAADIN:STOPWATCH</iconId>
</entityActionField> </entityActionField>
<entityConsumer> <entityConsumer>
<name>KeywordProbabilties</name> <name>KeywordProbabilties</name>
......
...@@ -227,6 +227,7 @@ ...@@ -227,6 +227,7 @@
<fieldType>ACTION</fieldType> <fieldType>ACTION</fieldType>
<title>New task</title> <title>New task</title>
<onActionProcess>%aditoprj%/entity/Task_entity/entityfields/newtask/onActionProcess.js</onActionProcess> <onActionProcess>%aditoprj%/entity/Task_entity/entityfields/newtask/onActionProcess.js</onActionProcess>
<actionOrder v="1" />
<iconId>VAADIN:TASKS</iconId> <iconId>VAADIN:TASKS</iconId>
</entityActionField> </entityActionField>
<entityParameter> <entityParameter>
...@@ -259,6 +260,7 @@ ...@@ -259,6 +260,7 @@
<fieldType>ACTION</fieldType> <fieldType>ACTION</fieldType>
<title>New offer</title> <title>New offer</title>
<onActionProcess>%aditoprj%/entity/Task_entity/entityfields/newoffer/onActionProcess.js</onActionProcess> <onActionProcess>%aditoprj%/entity/Task_entity/entityfields/newoffer/onActionProcess.js</onActionProcess>
<actionOrder v="0" />
<iconId>VAADIN:CART</iconId> <iconId>VAADIN:CART</iconId>
</entityActionField> </entityActionField>
<entityField> <entityField>
......
...@@ -35,6 +35,11 @@ ...@@ -35,6 +35,11 @@
<entityField>Documents</entityField> <entityField>Documents</entityField>
<view>DocumentFilter_view</view> <view>DocumentFilter_view</view>
</neonViewReference> </neonViewReference>
<neonViewReference>
<name>50f61cda-5f85-4212-b3b2-3a55b9fae54d</name>
<entityField>Offers</entityField>
<view>OfferFilter_view</view>
</neonViewReference>
<neonViewReference> <neonViewReference>
<name>fd099297-e87d-4ada-b7e7-e04afafbd8b0</name> <name>fd099297-e87d-4ada-b7e7-e04afafbd8b0</name>
<entityField>Contracts</entityField> <entityField>Contracts</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