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

[Projekt: Entwicklung - Neon][TicketNr.: 1037815][Umsetzung Telefon- und Mailanbindung]

parent 205385d6
No related branches found
No related tags found
No related merge requests found
Showing
with 52 additions and 9 deletions
......@@ -234,6 +234,9 @@ Usually this is used for filtering COMMUNICATION-entries by a specified contact
<expose v="true" />
<documentation>%aditoprj%/entity/Communication_entity/entityfields/address_param/documentation.adoc</documentation>
</entityParameter>
<entityField>
<name>SEARCHADDR</name>
</entityField>
</entityFields>
<recordContainers>
<dbRecordContainer>
......@@ -310,6 +313,7 @@ Usually this is used for filtering COMMUNICATION-entries by a specified contact
<indexRecordAlias>Data_alias</indexRecordAlias>
<idColumn>COMMUNICATIONID</idColumn>
<query>%aditoprj%/entity/Communication_entity/recordcontainers/groupextension/query.js</query>
<subProcess>%aditoprj%/entity/Communication_entity/recordcontainers/groupextension/subProcess.js</subProcess>
<affectedTables>
<element>COMMUNICATION</element>
<element>AB_KEYWORD_ENTRY</element>
......@@ -318,8 +322,15 @@ Usually this is used for filtering COMMUNICATION-entries by a specified contact
<indexRecordFieldMapping>
<name>ADDR.value</name>
<indexFieldType>COMMUNICATION</indexFieldType>
<additionalFieldNameAliases />
<isMultiValued v="true" />
</indexRecordFieldMapping>
<indexRecordFieldMapping>
<name>SEARCHADDR.value</name>
<indexFieldType>STRING</indexFieldType>
<isStored v="true" />
<isGlobalSearchField v="false" />
</indexRecordFieldMapping>
</indexFieldMappings>
</indexRecordContainer>
</recordContainers>
......
......@@ -10,7 +10,8 @@ if (vars.exists("$local.idvalue")) {
//TODO: refactor this for incremental indexer (injections?)
}
sqlQuery = "select COMMUNICATION.COMMUNICATIONID"
sqlQuery = "select COMMUNICATION.COMMUNICATIONID"
+ ', COMMUNICATION.COMMUNICATIONID as "_uid_"'
+ ", COMMUNICATION.ADDR"
+ " from COMMUNICATION"
+ (queryCondition || "")
......
......@@ -2,6 +2,7 @@
<entity xmlns="http://www.adito.de/2018/ao/Model" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" VERSION="1.3.11" xsi:schemaLocation="http://www.adito.de/2018/ao/Model adito://models/xsd/entity/1.3.11">
<name>UnlinkedMailMappingLink_entity</name>
<majorModelMode>DISTRIBUTED</majorModelMode>
<documentation>%aditoprj%/entity/UnlinkedMailMappingLink_entity/documentation.adoc</documentation>
<title>${UNLINKEDMAILMAPPING_ADDITIONAL_LINK}</title>
<titlePlural>${UNLINKEDMAILMAPPING_ADDITIONAL_LINKS}</titlePlural>
<recordContainer>jdito</recordContainer>
......@@ -55,6 +56,7 @@
<name>jdito</name>
<jDitoRecordAlias>Data_alias</jDitoRecordAlias>
<contentProcess>%aditoprj%/entity/UnlinkedMailMappingLink_entity/recordcontainers/jdito/contentProcess.js</contentProcess>
<rowCountProcess>%aditoprj%/entity/UnlinkedMailMappingLink_entity/recordcontainers/jdito/rowCountProcess.js</rowCountProcess>
<onInsert>%aditoprj%/entity/UnlinkedMailMappingLink_entity/recordcontainers/jdito/onInsert.js</onInsert>
<recordFieldMappings>
<jDitoRecordFieldMapping>
......
The purpose of this whole entity is to be a dummy datamodel that allows the user to provide some information.
That's the reason why this entity has a dummy-jdito-record container that does nothing.
It does not load any "real" data and does not execute anything within the insert/update/delete progress.
Currently this can only be solved with help of a dummy entity like this one here.
\ No newline at end of file
import("IncomingEmailExecutor_lib");
import("system.mail");
import("system.util");
import("system.db");
import("system.vars");
import("system.result");
var mailObject = null;
var res = [];
var idvalues = vars.get("$local.idvalues");
if (idvalues)
{
for (var i = 0, l = idvalues.length; i < l; i++)
{
res.push([idvalues[i], "", ""]);
}
}
result.object(res);
\ No newline at end of file
/*nothing happens here, everything is done within the UnlinkedMailMappingWrapper
--do not remove this comment otherwhile the kernel will detect that this process is empty and throws an error--*/
\ No newline at end of file
import("system.datetime");
/* In this process here basically nothing happens because everything is done within the UnlinkedMailMappingWrapper.
* To make the UnlinkedMailMappingLink_entity NOT read only we've to specify some code (comments excluded). This seems (and IS) odd but it's currenty
* the only way to do the job
* If you wan't more information about the entity and why it exists like this: See the documentation of the entity.
*
* Tl;dr; do not remove the following line: */
datetime.date();
\ No newline at end of file
import("system.result");
result.string(0);
\ No newline at end of file
......@@ -46,6 +46,7 @@
</entityConsumer>
<entityConsumer>
<name>UnlinkedMailMappingLinks</name>
<documentation>%aditoprj%/entity/UnlinkedMailMappingWrapper_entity/entityfields/unlinkedmailmappinglinks/documentation.adoc</documentation>
<dependency>
<name>dependency</name>
<entityName>UnlinkedMailMappingLink_entity</entityName>
......
In the target entity basically nothing happens. It's only for configuring the creation of the activity.
Within this entity (the UnlinkedMailMappingWrapper_entity) the data of the consumer is read and processed.
\ No newline at end of file
......@@ -57,6 +57,14 @@
<iconIdProcess>%aditoprj%/entity/UnlinkedMail_entity/entityfields/toactivity_actiongroup/children/toactivity_action/iconIdProcess.js</iconIdProcess>
<tooltip>Try to create activity automatically and ask for more information if necessary</tooltip>
</entityActionField>
<entityActionField>
<name>test</name>
<title>test</title>
<onActionProcess>%aditoprj%/entity/UnlinkedMail_entity/entityfields/toactivity_actiongroup/children/test/onActionProcess.js</onActionProcess>
<isMenuAction v="false" />
<isObjectAction v="false" />
<iconId>NEON:RECURRING_APPOINTMENT_MOVED</iconId>
</entityActionField>
</children>
</entityActionGroup>
</entityFields>
......
......@@ -23,7 +23,7 @@
</fields>
</genericViewTemplate>
<neonViewReference>
<name>10cbd0dc-4297-4703-ad84-b52312700f2e</name>
<name>7de3255c-edc7-469f-9836-0e56fab21921</name>
<entityField>UnlinkedMailMappingLinks</entityField>
<view>UnlinkedMailMappingLinkList_view</view>
</neonViewReference>
......
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