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