Skip to content
Snippets Groups Projects
Commit 21276abf authored by Andreas Schindlbeck's avatar Andreas Schindlbeck
Browse files

Merge branch 'master' of gitlab.adito.de:xrm/basic

parents aa8993af 11272231
No related branches found
No related tags found
No related merge requests found
Showing
with 150 additions and 11 deletions
......@@ -3,6 +3,7 @@
<name>Activity_entity</name>
<title>Activity</title>
<majorModelMode>DISTRIBUTED</majorModelMode>
<documentation>%aditoprj%/entity/Activity_entity/documentation.adoc</documentation>
<iconId>NEON:HISTORY</iconId>
<imageProcess>%aditoprj%/entity/Activity_entity/imageProcess.js</imageProcess>
<recordContainer>db</recordContainer>
......@@ -137,7 +138,7 @@
<expose v="true" />
<triggerRecalculation v="true" />
<mandatory v="false" />
<description>Nur Eigene anzeigen</description>
<documentation>%aditoprj%/entity/Activity_entity/entityfields/onlyinnate_param/documentation.adoc</documentation>
</entityParameter>
<entityField>
<name>DATE_EDIT</name>
......@@ -168,7 +169,7 @@
<expose v="true" />
<triggerRecalculation v="true" />
<mandatory v="false" />
<description>PARAMETER</description>
<documentation>%aditoprj%/entity/Activity_entity/entityfields/objectid_param/documentation.adoc</documentation>
</entityParameter>
<entityField>
<name>ObjectId</name>
......@@ -184,6 +185,58 @@
<state>READONLY</state>
<valueProcess>%aditoprj%/entity/Activity_entity/entityfields/rowid/valueProcess.js</valueProcess>
</entityField>
<entityOutgoingField>
<name>ActivityDocument_dfo</name>
<title>Documents</title>
<fieldType>DEPENDENCY_OUT</fieldType>
<dependency>
<name>dependency</name>
<entityName>Document_entity</entityName>
<fieldName>ActivityDocument_dfi</fieldName>
</dependency>
<children>
<entityParameter>
<name>AssignmentName_param</name>
<code>%aditoprj%/entity/Activity_entity/entityfields/activitydocument_dfo/children/assignmentname_param/code.js</code>
</entityParameter>
<entityParameter>
<name>AssignmentRowId_param</name>
<code>%aditoprj%/entity/Activity_entity/entityfields/activitydocument_dfo/children/assignmentrowid_param/code.js</code>
</entityParameter>
<entityParameter>
<name>AssignmentTable_param</name>
<code>%aditoprj%/entity/Activity_entity/entityfields/activitydocument_dfo/children/assignmenttable_param/code.js</code>
</entityParameter>
</children>
</entityOutgoingField>
<entityOutgoingField>
<name>ActivityMainDocument_dfo</name>
<title>Maindocuments</title>
<fieldType>DEPENDENCY_OUT</fieldType>
<dependency>
<name>dependency</name>
<entityName>Document_entity</entityName>
<fieldName>ActivityMainDocuments_dfi</fieldName>
</dependency>
<children>
<entityParameter>
<name>Keyword_param</name>
<code>%aditoprj%/entity/Activity_entity/entityfields/activitymaindocument_dfo/children/keyword_param/code.js</code>
</entityParameter>
<entityParameter>
<name>AssignmentTable_param</name>
<code>%aditoprj%/entity/Activity_entity/entityfields/activitymaindocument_dfo/children/assignmenttable_param/code.js</code>
</entityParameter>
<entityParameter>
<name>AssignmentRowId_param</name>
<code>%aditoprj%/entity/Activity_entity/entityfields/activitymaindocument_dfo/children/assignmentrowid_param/code.js</code>
</entityParameter>
<entityParameter>
<name>AssignmentName_param</name>
<code>%aditoprj%/entity/Activity_entity/entityfields/activitymaindocument_dfo/children/assignmentname_param/code.js</code>
</entityParameter>
</children>
</entityOutgoingField>
</entityFields>
<recordContainers>
<dbRecordContainer>
......
= Activity
An activity describes one part of the communication timeline.
This could be for example an e-mail or a phone call.
Every activity can be connected to several other objects like contactpersons, organisations, products, offers, and so on.
import("system.result");
result.string("DOCUMENT");
\ No newline at end of file
import("system.result");
import("system.vars");
result.string(vars.get("$field.ACTIVITYID"));
\ No newline at end of file
import("system.result");
result.string("ACTIVITY");
\ No newline at end of file
import("system.result");
result.string("DOCUMENT");
\ No newline at end of file
import("system.result");
import("system.vars");
result.string(vars.get("$field.ACTIVITYID"));
\ No newline at end of file
import("system.result");
result.string("ACTIVITY");
\ No newline at end of file
import("system.result");
result.string("MAINDOCUMENT");
\ No newline at end of file
The `ObjectId_param`-param specifies the object type of a `RowId_param`.
For example if you pass a `RELATIONID` [of a contactperson] as `RowId_param` you've to specify the type[the `ObjObjectId_param`] as contactperson.
The `OnlyInnate_param` specifies a filter where only own records (records you created) are displayed.
\ No newline at end of file
......@@ -3,6 +3,7 @@
<name>Address_entity</name>
<title>Addresses</title>
<majorModelMode>DISTRIBUTED</majorModelMode>
<documentation>%aditoprj%/entity/Address_entity/documentation.adoc</documentation>
<titleProcess>%aditoprj%/entity/Address_entity/titleProcess.js</titleProcess>
<recordContainer>db</recordContainer>
<entityFields>
......@@ -23,6 +24,7 @@
</entityField>
<entityField>
<name>ADDR_TYPE</name>
<documentation>%aditoprj%/entity/Address_entity/entityfields/addr_type/documentation.adoc</documentation>
<title>Addresstype</title>
<possibleItemsProcess>%aditoprj%/entity/Address_entity/entityfields/addr_type/possibleItemsProcess.js</possibleItemsProcess>
</entityField>
......@@ -96,7 +98,7 @@
<entityParameter>
<name>RelId_param</name>
<expose v="true" />
<description>PARAMETER</description>
<documentation>%aditoprj%/entity/Address_entity/entityfields/relid_param/documentation.adoc</documentation>
</entityParameter>
<entityIncomingField>
<name>PersAddress_dfi</name>
......@@ -126,6 +128,7 @@
<entityIncomingField>
<name>PersOrgsAddresses_dfi</name>
<fieldType>DEPENDENCY_IN</fieldType>
<documentation>%aditoprj%/entity/Address_entity/entityfields/persorgsaddresses_dfi/documentation.adoc</documentation>
<recordContainer>db</recordContainer>
<dependencies>
<entityDependency>
......@@ -138,6 +141,7 @@
</entityIncomingField>
<entityField>
<name>IS_STANDARD</name>
<documentation>%aditoprj%/entity/Address_entity/entityfields/is_standard/documentation.adoc</documentation>
<contentType>BOOLEAN</contentType>
<valueProcess>%aditoprj%/entity/Address_entity/entityfields/is_standard/valueProcess.js</valueProcess>
</entityField>
......@@ -145,7 +149,8 @@
<name>DefaultAddressId_param</name>
<expose v="true" />
<triggerRecalculation v="false" />
<description>PARAMETER</description>
<documentation>%aditoprj%/entity/Address_entity/entityfields/defaultaddressid_param/documentation.adoc</documentation>
<description>provide a ADDRESSID-value of the standard address (of a RELATION)</description>
</entityParameter>
</entityFields>
<recordContainers>
......
Address
=======
----
an entity for logic behind a postal address
----
The entity manages storing postal addresses and provides features like validation.
Every `RELATION` has one standard address value that is used by default for some actions. Keep in mind that this standard address has a special status and therefore may cannot be deleted.
The `ADDR_TYPE` field represents the type of address (like "shipping address", "private address", etc.)
Possible values depend on the type of object it's connect to since a contactperson has different types than a company (organisation).
\ No newline at end of file
`ADDRESSID`-value that specifies which ADDRESSID` is the standard addess of a record. [.small]#See: `IS_STANDARD` field#
There is no validation if the provided value is actually the value of an standard address or a valid `ADDRESSID` at all.
\ No newline at end of file
The `IS_STANDARD` field specifies if an ADDRESS is the standard address (see Address_entity documentation)
However that information is not stored directly in the `ADDRESS` database table. Every `RELATION`-record has an own standard address.
\ No newline at end of file
Dependency for an arbitrary address of
* `ORG`
* `PERS`
\ No newline at end of file
`RELATIONID`-value that is associated with
* an existing address (=filtering)
* an address that shall be created (=inserted)
\ No newline at end of file
......@@ -231,11 +231,32 @@
</entityDependency>
</dependencies>
</entityIncomingField>
<entityActionField>
<name>downloadEntryAction</name>
<fieldType>ACTION</fieldType>
<onActionProcess>%aditoprj%/entity/Document_entity/entityfields/downloadentryaction/onActionProcess.js</onActionProcess>
</entityActionField>
<entityIncomingField>
<name>ActivityDocument_dfi</name>
<fieldType>DEPENDENCY_IN</fieldType>
<recordContainer>jdito</recordContainer>
<dependencies>
<entityDependency>
<name>d57c0122-3227-4f98-b6a5-2ae45a0c5571</name>
<entityName>Activity_entity</entityName>
<fieldName>ActivityDocument_dfo</fieldName>
<isOutgoing v="false" />
</entityDependency>
</dependencies>
</entityIncomingField>
<entityIncomingField>
<name>ActivityMainDocuments_dfi</name>
<fieldType>DEPENDENCY_IN</fieldType>
<recordContainer>jdito</recordContainer>
<dependencies>
<entityDependency>
<name>056d9a73-c9cd-44f2-828b-e9742b66fa37</name>
<entityName>Activity_entity</entityName>
<fieldName>ActivityMainDocument_dfo</fieldName>
<isOutgoing v="false" />
</entityDependency>
</dependencies>
</entityIncomingField>
</entityFields>
<recordContainers>
<jDitoRecordContainer>
......
import("Document_lib");
DocumentUtil.downloadSelectedDocuments();
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