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

ScanServices - warnings

parent 658a9fcc
No related branches found
No related tags found
No related merge requests found
Showing
with 11 additions and 58 deletions
......@@ -730,10 +730,6 @@
<recordfield>ACTIVITY.ACTIVITYID</recordfield>
<aggregateType>COUNT</aggregateType>
</aggregateFieldDbMapping>
<dbRecordFieldMapping>
<name>COUNT.value</name>
<expression>%aditoprj%/entity/Activity_entity/recordcontainers/db/recordfieldmappings/count.value/expression.js</expression>
</dbRecordFieldMapping>
</recordFieldMappings>
<filterExtensions>
<filterExtensionSet>
......
import("system.translate");
import("system.result");
result.object([["true", translate.text("Yes")], ["false", translate.text("No")]]);
\ No newline at end of file
......@@ -144,7 +144,6 @@
<name>jdito</name>
<jDitoRecordAlias>Data_alias</jDitoRecordAlias>
<contentProcess>%aditoprj%/entity/CampaignAddParticipants_entity/recordcontainers/jdito/contentProcess.js</contentProcess>
<onInsert>%aditoprj%/entity/CampaignAddParticipants_entity/recordcontainers/jdito/onInsert.js</onInsert>
<recordFieldMappings>
<jDitoRecordFieldMapping>
<name>UID.value</name>
......
import("system.vars");
import("system.result");
result.string(vars.get("$field.CLASSIFICATIONTYPEID"));
\ No newline at end of file
......@@ -74,6 +74,7 @@
</entityConsumer>
<entityProvider>
<name>CommRestrictions</name>
<documentation>%aditoprj%/entity/CommRestriction_Entity/entityfields/commrestrictions/documentation.adoc</documentation>
<dependencies>
<entityDependency>
<name>b50e33cd-e20f-4bdf-b0ee-2ecdab921ffd</name>
......
import("system.vars");
import("system.result");
result.string(vars.get("$field.MEDIUM"));
\ No newline at end of file
Basic provider for communication restrictions (advertising bans) for one contact. Therefor the ContactId is a mandatory parameter.
\ No newline at end of file
......@@ -60,6 +60,7 @@ Usually this is used for filtering COMMUNICATION-entries by a specified contact
</entityParameter>
<entityProvider>
<name>AllCommunications</name>
<documentation>%aditoprj%/entity/Communication_entity/entityfields/allcommunications/documentation.adoc</documentation>
<recordContainer>db</recordContainer>
<dependencies>
<entityDependency>
......@@ -111,6 +112,7 @@ Usually this is used for filtering COMMUNICATION-entries by a specified contact
</entityProvider>
<entityProvider>
<name>PhoneCommunications</name>
<documentation>%aditoprj%/entity/Communication_entity/entityfields/phonecommunications/documentation.adoc</documentation>
<recordContainer>db</recordContainer>
<dependencies>
<entityDependency>
......@@ -152,6 +154,7 @@ Usually this is used for filtering COMMUNICATION-entries by a specified contact
</entityProvider>
<entityProvider>
<name>EmailCommunications</name>
<documentation>%aditoprj%/entity/Communication_entity/entityfields/emailcommunications/documentation.adoc</documentation>
<recordContainer>db</recordContainer>
<dependencies>
<entityDependency>
......@@ -259,6 +262,7 @@ Usually this is used for filtering COMMUNICATION-entries by a specified contact
</entityField>
<entityProvider>
<name>QuickEntryCommunications</name>
<documentation>%aditoprj%/entity/Communication_entity/entityfields/quickentrycommunications/documentation.adoc</documentation>
<dependencies>
<entityDependency>
<name>85bc11c4-7226-4b3e-82cb-947dfb05a972</name>
......
Provides all communication entries for a single contact, regardless of the communication type.
\ No newline at end of file
import("system.util");
import("system.result");
import("system.neon");
import("system.vars");
//do not check if own value is null or empty because the own value is currently not set correctly when you've got several COMMUNICATION entries (e.g. in a list edit)
if (vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW)
result.string(util.getNewUUID());
\ No newline at end of file
import("system.result");
result.string("EMAIL")
\ No newline at end of file
Provides all communication entries of the type "email". For example, this can be used to provide a list of choose able standard email addresses for a contact.
\ No newline at end of file
import("system.result");
import("Keyword_lib");
import("KeywordRegistry_basic");
result.string($KeywordRegistry.communicationMedium());
\ No newline at end of file
import("system.result");
result.string("PHONE")
\ No newline at end of file
Provides all communication entries of the type "phone". For example, this can be used to provide a list of choose able standard phone addresses for a contact.
\ No newline at end of file
Provider specialized for the use in the QuickEntry_entity since the QuickEntry_entity needs some special handling of data.
\ No newline at end of file
import("Sql_lib");
import("system.result");
import("system.vars");
import("system.db");
var querySelect = newSelect('COMMUNICATION.COMMUNICATIONID, COMMUNICATION.COMMUNICATIONID as "_uid_", COMMUNICATION.ADDR')
.from("COMMUNICATION")
.orderBy("COMMUNICATION.COMMUNICATIONID");
if (vars.exists("$local.idvalue") && vars.get("$local.idvalue") && vars.get("$local.idvalue").length > 0) {
querySelect.where("COMMUNICATION.COMMUNICATIONID", vars.get("$local.idvalue"), SqlBuilder.IN());
}
result.string(querySelect.toString());
\ No newline at end of file
import("system.vars");
import("system.result");
import("system.neon");
if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_EDIT)
result.string(vars.getString("$sys.date"));
\ No newline at end of file
import("system.vars");
import("system.result");
import("system.neon");
if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW)
result.string(vars.getString("$sys.date"));
\ No newline at end of file
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