Skip to content
Snippets Groups Projects
Commit 98f1950e authored by Alexander Riedl's avatar Alexander Riedl :cookie: Committed by Sebastian Pongratz
Browse files

[Projekt: xRM-ContactManagement][TicketNr.: 1074059][Email_lib: Parameter...

[Projekt: xRM-ContactManagement][TicketNr.: 1074059][Email_lib: Parameter Anzahl / Reihenfolge für EmailWritingUtils.openNewMail() und EmailWritingUtils.sendReportAsMail() falsch.]
parent a3a25418
No related branches found
No related tags found
No related merge requests found
Showing
with 765 additions and 1 deletion
......@@ -12,6 +12,7 @@
<include relativeToChangelogFile="true" file="DSGVO/changelog.xml"/>
<include relativeToChangelogFile="true" file="update_ab_countryinfo_name_native.xml"/>
<include relativeToChangelogFile="true" file="create_probability_keywords.xml"/>
<include relativeToChangelogFile="true" file="LinkManagement/changelog.xml"/>
<include relativeToChangelogFile="true" file="LinkWorkflows/changelog.xml"/>
<include relativeToChangelogFile="true" file="renameLeadTable.xml"/>
</databaseChangeLog>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.6.xsd">
<changeSet author="A.Riedl" id="e361ec95-f6cc-43ea-afe9-98d7600acc8a">
<insert tableName="AB_KEYWORD_CATEGORY">
<column name="AB_KEYWORD_CATEGORYID" value="cf3cd723-687d-42ac-9ce2-aa3cd59aba7a"/>
<column name="NAME" value="AdvertisingStatus"/>
<column name="SORTINGBY" valueNumeric="0"/>
<column name="SORTINGDIRECTION" value="ASC"/>
</insert>
<insert tableName="AB_KEYWORD_ENTRY">
<column name="AB_KEYWORD_ENTRYID" value="6257dcf2-636c-4de8-be36-11d703af00a4"/>
<column name="KEYID" value="ADVERTISINGSTATOPEN"/>
<column name="TITLE" value="Open"/>
<column name="CONTAINER"/>
<column name="SORTING" valueNumeric="1"/>
<column name="ISACTIVE" valueNumeric="1"/>
<column name="ISESSENTIAL" valueNumeric="0"/>
<column name="AB_KEYWORD_CATEGORY_ID" value="cf3cd723-687d-42ac-9ce2-aa3cd59aba7a"/>
</insert>
<insert tableName="AB_KEYWORD_ENTRY">
<column name="AB_KEYWORD_ENTRYID" value="7b95821d-1992-43b0-9384-e07460308019"/>
<column name="KEYID" value="ADVERTISINGFOLLOWEDUP"/>
<column name="TITLE" value="Followed up"/>
<column name="CONTAINER"/>
<column name="SORTING" valueNumeric="3"/>
<column name="ISACTIVE" valueNumeric="1"/>
<column name="ISESSENTIAL" valueNumeric="0"/>
<column name="AB_KEYWORD_CATEGORY_ID" value="cf3cd723-687d-42ac-9ce2-aa3cd59aba7a"/>
</insert>
<insert tableName="AB_KEYWORD_ENTRY">
<column name="AB_KEYWORD_ENTRYID" value="fe53d26a-9fe2-4bb3-9afe-61f980fa1d17"/>
<column name="KEYID" value="ADVERTISINGSTATSENT"/>
<column name="TITLE" value="Sent"/>
<column name="CONTAINER"/>
<column name="SORTING" valueNumeric="2"/>
<column name="ISACTIVE" valueNumeric="1"/>
<column name="ISESSENTIAL" valueNumeric="0"/>
<column name="AB_KEYWORD_CATEGORY_ID" value="cf3cd723-687d-42ac-9ce2-aa3cd59aba7a"/>
</insert>
<insert tableName="AB_KEYWORD_CATEGORY">
<column name="AB_KEYWORD_CATEGORYID" value="60b31bd8-2c5e-461c-b4a1-6c4e31d505e8"/>
<column name="NAME" value="AdvertisingDelivery"/>
<column name="SORTINGBY" valueNumeric="0"/>
<column name="SORTINGDIRECTION" value="ASC"/>
</insert>
<insert tableName="AB_KEYWORD_ENTRY">
<column name="AB_KEYWORD_ENTRYID" value="36c9729f-168b-4801-9b17-1bc3630ea114"/>
<column name="KEYID" value="ADVERTDELIVERYPERSONAL"/>
<column name="TITLE" value="personal"/>
<column name="CONTAINER"/>
<column name="SORTING" valueNumeric="1"/>
<column name="ISACTIVE" valueNumeric="1"/>
<column name="ISESSENTIAL" valueNumeric="0"/>
<column name="AB_KEYWORD_CATEGORY_ID" value="60b31bd8-2c5e-461c-b4a1-6c4e31d505e8"/>
</insert>
<insert tableName="AB_KEYWORD_ENTRY">
<column name="AB_KEYWORD_ENTRYID" value="87f6b1b5-43ce-492e-9baa-d1ad95a06dc0"/>
<column name="KEYID" value="ADVERTDELIVERYMAIL"/>
<column name="TITLE" value="via mail"/>
<column name="CONTAINER"/>
<column name="SORTING" valueNumeric="3"/>
<column name="ISACTIVE" valueNumeric="1"/>
<column name="ISESSENTIAL" valueNumeric="0"/>
<column name="AB_KEYWORD_CATEGORY_ID" value="60b31bd8-2c5e-461c-b4a1-6c4e31d505e8"/>
</insert>
<insert tableName="AB_KEYWORD_ENTRY">
<column name="AB_KEYWORD_ENTRYID" value="092dcb14-b207-4c20-b5c7-5aeaf07ca081"/>
<column name="KEYID" value="ADVERTDELIVERYPOST"/>
<column name="TITLE" value="via post"/>
<column name="CONTAINER"/>
<column name="SORTING" valueNumeric="2"/>
<column name="ISACTIVE" valueNumeric="1"/>
<column name="ISESSENTIAL" valueNumeric="0"/>
<column name="AB_KEYWORD_CATEGORY_ID" value="60b31bd8-2c5e-461c-b4a1-6c4e31d505e8"/>
</insert>
</changeSet>
</databaseChangeLog>
<?xml version="1.0" encoding="UTF-8"?>
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.6.xsd">
<changeSet author="a.riedl" id="e03b89e1-f7d1-43a8-9e60-e043d6eae241" >
<addColumn tableName="PRODUCT">
<column name="DIGITAL" type="CHAR(1)"/>
</addColumn>
</changeSet>
</databaseChangeLog>
<?xml version="1.1" encoding="UTF-8" standalone="no"?>
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.6.xsd">
<include relativeToChangelogFile="true" file="AlterProduct.xml"/>
<include relativeToChangelogFile="true" file="create_Advertising.xml"/>
<include relativeToChangelogFile="true" file="create_AdvertisingItem.xml"/>
<include relativeToChangelogFile="true" file="AdvertisingKeywords.xml"/>
</databaseChangeLog>
\ No newline at end of file
<?xml version="1.1" encoding="UTF-8" standalone="no"?>
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.6.xsd">
<changeSet author="a.riedl" id="c0bd77e0-6ddc-49fe-a981-edd359965d26">
<createTable tableName="ADVERTISING">
<column name="ADVERTISINGID" type="CHAR(36)">
<constraints primaryKey="true" primaryKeyName="PK_ADVERTISING_ADVERTISINGID"/>
</column>
<column name="CONTACT_ID" type="CHAR(36)"/>
<column name="RESPONSIBLE_ID" type="CHAR(36)"/>
<column name="ROW_ID" type="CHAR(36)">
<constraints nullable="false"/>
</column>
<column name="OBJECT_TYPE" type="NVARCHAR(63)">
<constraints nullable="false"/>
</column>
<column name="STATUS" type="VARCHAR(36)"/>
<column name="CURRENCY" type="VARCHAR(36)"/>
<column name="DATE_NEW" type="DATETIME"/>
<column name="DATE_EDIT" type="DATETIME"/>
</createTable>
<createIndex tableName="ADVERTISING" indexName="IDX_ADVERTISING_RESPONSIBLE_ID">
<column name="RESPONSIBLE_ID"/>
</createIndex>
<createIndex tableName="ADVERTISING" indexName="IDX_ADVERTISING_CONTACT_ID">
<column name="CONTACT_ID"/>
</createIndex>
<createIndex tableName="ADVERTISING" indexName="IDX_ADVERTISING_ROW_ID">
<column name="ROW_ID"/>
</createIndex>
</changeSet>
</databaseChangeLog>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.6.xsd">
<changeSet author="A.Riedl" id="21cfcb52-9597-403b-9fa4-49edbe699545">
<createTable tableName="ADVERTISINGITEM">
<column name="ADVERTISINGITEMID" type="CHAR(36)">
<constraints primaryKey="true" primaryKeyName="PK_ADVERTISINGITEM_ADVERTISINGITEMID"></constraints>
</column>
<column name="ADVERTISING_ID" type="CHAR(36)">
<constraints nullable="false"/>
</column>
<column name="PRODUCT_ID" type="CHAR(36)">
<constraints nullable="false" foreignKeyName="FK_OFFERITEM_PRODUCT_ID" references="PRODUCT(PRODUCTID)"/>
</column>
<column name="ITEMPOSITION" type="VARCHAR(30)"/>
<column name="QUANTITY" type="NUMERIC(14,2)"/>
<column name="UNIT" type="VARCHAR(36)"/>
<column name="FREE" type="TINYINT">
<constraints nullable="false"/>
</column>
<column name="PRICE" type="NUMERIC(14,2)"/>
<column name="TARGETAMOUNT" type="NUMERIC(14,2)"/>
<column name="ACTUALAMOUNT" type="NUMERIC(14,2)"/>
<column name="DELIVERY" type="VARCHAR(36)"/>
<column name="SENT" type="TINYINT">
<constraints nullable="false"/>
</column>
<column name="STATUS" type="VARCHAR(36)"/>
<column name="INFO" type="NCLOB"/>
<column name="USER_NEW" type="NVARCHAR(50)"></column>
<column name="USER_EDIT" type="NVARCHAR(50)"></column>
<column name="DATE_NEW" type="DATETIME"></column>
<column name="DATE_EDIT" type="DATETIME"></column>
</createTable>
<createIndex tableName="ADVERTISINGITEM" indexName="IDX_ADVERTISINGITEM_ADVERTISING_ID">
<column name="ADVERTISING_ID"/>
</createIndex>
</changeSet>
</databaseChangeLog>
......@@ -6,4 +6,5 @@
<include relativeToChangelogFile="true" file="offerWorkflow/add_ab_keyword_entry_offerstatus.xml"/>
<include relativeToChangelogFile="true" file="offerWorkflow/add_ab_keyword_entry_activityCategory.xml"/>
<include relativeToChangelogFile="true" file="create_standardWorkflow.xml"/>
<include relativeToChangelogFile="true" file="Advertising/changelog.xml"/>
</databaseChangeLog>
\ No newline at end of file
......@@ -1858,6 +1858,20 @@
<title></title>
<description></description>
</entityFieldDb>
<entityFieldDb>
<name>DIGITAL</name>
<dbName></dbName>
<primaryKey v="false" />
<columnType v="1" />
<size v="1" />
<scale v="0" />
<notNull v="false" />
<isUnique v="false" />
<index v="false" />
<documentation></documentation>
<title></title>
<description></description>
</entityFieldDb>
</entityFields>
</entityDb>
<entityDb>
......@@ -20340,6 +20354,424 @@
</entityFieldDb>
</entityFields>
</entityDb>
<entityDb>
<name>ADVERTISING</name>
<dbName></dbName>
<idColumn>ADVERTISINGID</idColumn>
<idGeneratorType v="0" />
<idGeneratorInterval v="1" />
<documentation></documentation>
<title></title>
<description></description>
<auditSyncConfig>
<name>auditSyncConfig</name>
<auditMode v="0" />
<syncActive v="false" />
<syncComplete v="true" />
<syncDirection v="1" />
<syncIds></syncIds>
</auditSyncConfig>
<entityFields>
<entityFieldDb>
<name>ADVERTISINGID</name>
<dbName></dbName>
<primaryKey v="true" />
<columnType v="1" />
<size v="36" />
<scale v="0" />
<notNull v="true" />
<isUnique v="true" />
<index v="true" />
<documentation></documentation>
<title></title>
<description></description>
</entityFieldDb>
<entityFieldDb>
<name>RESPONSIBLE_ID</name>
<dbName></dbName>
<primaryKey v="false" />
<columnType v="1" />
<size v="36" />
<scale v="0" />
<notNull v="false" />
<isUnique v="false" />
<index v="false" />
<documentation></documentation>
<title></title>
<description></description>
</entityFieldDb>
<entityFieldDb>
<name>CONTACT_ID</name>
<dbName></dbName>
<primaryKey v="false" />
<columnType v="1" />
<size v="36" />
<scale v="0" />
<notNull v="false" />
<isUnique v="false" />
<index v="false" />
<documentation></documentation>
<title></title>
<description></description>
</entityFieldDb>
<entityFieldDb>
<name>OBJECT_TYPE</name>
<dbName></dbName>
<primaryKey v="false" />
<columnType v="12" />
<size v="63" />
<scale v="0" />
<notNull v="true" />
<isUnique v="false" />
<index v="false" />
<documentation></documentation>
<title></title>
<description></description>
</entityFieldDb>
<entityFieldDb>
<name>ROW_ID</name>
<dbName></dbName>
<primaryKey v="false" />
<columnType v="1" />
<size v="36" />
<scale v="0" />
<notNull v="true" />
<isUnique v="false" />
<index v="false" />
<documentation></documentation>
<title></title>
<description></description>
</entityFieldDb>
<entityFieldDb>
<name>CURRENCY</name>
<dbName></dbName>
<primaryKey v="false" />
<columnType v="12" />
<size v="36" />
<scale v="0" />
<notNull v="false" />
<isUnique v="false" />
<index v="false" />
<documentation></documentation>
<title></title>
<description></description>
</entityFieldDb>
<entityFieldDb>
<name>STATUS</name>
<dbName></dbName>
<primaryKey v="false" />
<columnType v="12" />
<size v="36" />
<scale v="0" />
<notNull v="false" />
<isUnique v="false" />
<index v="false" />
<documentation></documentation>
<title></title>
<description></description>
</entityFieldDb>
<entityFieldDb>
<name>DATE_EDIT</name>
<dbName></dbName>
<primaryKey v="false" />
<columnType v="93" />
<size v="19" />
<scale v="0" />
<notNull v="false" />
<isUnique v="false" />
<index v="false" />
<documentation></documentation>
<title></title>
<description></description>
</entityFieldDb>
<entityFieldDb>
<name>DATE_NEW</name>
<dbName></dbName>
<primaryKey v="false" />
<columnType v="93" />
<size v="19" />
<scale v="0" />
<notNull v="false" />
<isUnique v="false" />
<index v="false" />
<documentation></documentation>
<title></title>
<description></description>
</entityFieldDb>
</entityFields>
</entityDb>
<entityDb>
<name>ADVERTISINGITEM</name>
<dbName></dbName>
<idColumn>ADVERTISINGITEMID</idColumn>
<idGeneratorType v="0" />
<idGeneratorInterval v="1" />
<documentation></documentation>
<title></title>
<description></description>
<auditSyncConfig>
<name>auditSyncConfig</name>
<auditMode v="0" />
<syncActive v="false" />
<syncComplete v="true" />
<syncDirection v="1" />
<syncIds></syncIds>
</auditSyncConfig>
<entityFields>
<entityFieldDb>
<name>ADVERTISINGITEMID</name>
<dbName></dbName>
<primaryKey v="true" />
<columnType v="1" />
<size v="36" />
<scale v="0" />
<notNull v="true" />
<isUnique v="true" />
<index v="true" />
<documentation></documentation>
<title></title>
<description></description>
</entityFieldDb>
<entityFieldDb>
<name>UNIT</name>
<dbName></dbName>
<primaryKey v="false" />
<columnType v="12" />
<size v="36" />
<scale v="0" />
<notNull v="false" />
<isUnique v="false" />
<index v="false" />
<documentation></documentation>
<title></title>
<description></description>
</entityFieldDb>
<entityFieldDb>
<name>PRICE</name>
<dbName></dbName>
<primaryKey v="false" />
<columnType v="3" />
<size v="14" />
<scale v="2" />
<notNull v="false" />
<isUnique v="false" />
<index v="false" />
<documentation></documentation>
<title></title>
<description></description>
</entityFieldDb>
<entityFieldDb>
<name>DATE_EDIT</name>
<dbName></dbName>
<primaryKey v="false" />
<columnType v="93" />
<size v="19" />
<scale v="0" />
<notNull v="false" />
<isUnique v="false" />
<index v="false" />
<documentation></documentation>
<title></title>
<description></description>
</entityFieldDb>
<entityFieldDb>
<name>QUANTITY</name>
<dbName></dbName>
<primaryKey v="false" />
<columnType v="3" />
<size v="14" />
<scale v="2" />
<notNull v="false" />
<isUnique v="false" />
<index v="false" />
<documentation></documentation>
<title></title>
<description></description>
</entityFieldDb>
<entityFieldDb>
<name>INFO</name>
<dbName></dbName>
<primaryKey v="false" />
<columnType v="-1" />
<size v="2147483647" />
<scale v="0" />
<notNull v="false" />
<isUnique v="false" />
<index v="false" />
<documentation></documentation>
<title></title>
<description></description>
</entityFieldDb>
<entityFieldDb>
<name>PRODUCT_ID</name>
<dbName></dbName>
<primaryKey v="false" />
<columnType v="1" />
<size v="36" />
<scale v="0" />
<notNull v="true" />
<isUnique v="false" />
<index v="true" />
<documentation></documentation>
<title></title>
<description></description>
</entityFieldDb>
<entityFieldDb>
<name>FREE</name>
<dbName></dbName>
<primaryKey v="false" />
<columnType v="-6" />
<size v="3" />
<scale v="0" />
<notNull v="true" />
<isUnique v="false" />
<index v="false" />
<documentation></documentation>
<title></title>
<description></description>
</entityFieldDb>
<entityFieldDb>
<name>USER_EDIT</name>
<dbName></dbName>
<primaryKey v="false" />
<columnType v="12" />
<size v="50" />
<scale v="0" />
<notNull v="false" />
<isUnique v="false" />
<index v="false" />
<documentation></documentation>
<title></title>
<description></description>
</entityFieldDb>
<entityFieldDb>
<name>DELIVERY</name>
<dbName></dbName>
<primaryKey v="false" />
<columnType v="12" />
<size v="36" />
<scale v="0" />
<notNull v="false" />
<isUnique v="false" />
<index v="false" />
<documentation></documentation>
<title></title>
<description></description>
</entityFieldDb>
<entityFieldDb>
<name>TARGETAMOUNT</name>
<dbName></dbName>
<primaryKey v="false" />
<columnType v="3" />
<size v="14" />
<scale v="2" />
<notNull v="false" />
<isUnique v="false" />
<index v="false" />
<documentation></documentation>
<title></title>
<description></description>
</entityFieldDb>
<entityFieldDb>
<name>ITEMPOSITION</name>
<dbName></dbName>
<primaryKey v="false" />
<columnType v="12" />
<size v="30" />
<scale v="0" />
<notNull v="false" />
<isUnique v="false" />
<index v="false" />
<documentation></documentation>
<title></title>
<description></description>
</entityFieldDb>
<entityFieldDb>
<name>STATUS</name>
<dbName></dbName>
<primaryKey v="false" />
<columnType v="12" />
<size v="36" />
<scale v="0" />
<notNull v="false" />
<isUnique v="false" />
<index v="false" />
<documentation></documentation>
<title></title>
<description></description>
</entityFieldDb>
<entityFieldDb>
<name>DATE_NEW</name>
<dbName></dbName>
<primaryKey v="false" />
<columnType v="93" />
<size v="19" />
<scale v="0" />
<notNull v="false" />
<isUnique v="false" />
<index v="false" />
<documentation></documentation>
<title></title>
<description></description>
</entityFieldDb>
<entityFieldDb>
<name>USER_NEW</name>
<dbName></dbName>
<primaryKey v="false" />
<columnType v="12" />
<size v="50" />
<scale v="0" />
<notNull v="false" />
<isUnique v="false" />
<index v="false" />
<documentation></documentation>
<title></title>
<description></description>
</entityFieldDb>
<entityFieldDb>
<name>ACTUALAMOUNT</name>
<dbName></dbName>
<primaryKey v="false" />
<columnType v="3" />
<size v="14" />
<scale v="2" />
<notNull v="false" />
<isUnique v="false" />
<index v="false" />
<documentation></documentation>
<title></title>
<description></description>
</entityFieldDb>
<entityFieldDb>
<name>SENT</name>
<dbName></dbName>
<primaryKey v="false" />
<columnType v="-6" />
<size v="3" />
<scale v="0" />
<notNull v="true" />
<isUnique v="false" />
<index v="false" />
<documentation></documentation>
<title></title>
<description></description>
</entityFieldDb>
<entityFieldDb>
<name>ADVERTISING_ID</name>
<dbName></dbName>
<primaryKey v="false" />
<columnType v="1" />
<size v="36" />
<scale v="0" />
<notNull v="true" />
<isUnique v="false" />
<index v="false" />
<documentation></documentation>
<title></title>
<description></description>
</entityFieldDb>
</entityFields>
</entityDb>
</entities>
</entityGroup>
</aliasDefDb>
......
......@@ -100,6 +100,10 @@
<name>SalesprojectConversionRate</name>
<kind v="10077" />
</entityNode>
<entityNode>
<name>Advertising</name>
<kind v="10077" />
</entityNode>
</childNodes>
</entityNode>
<entityNode>
......@@ -168,6 +172,10 @@
</entityNode>
</childNodes>
</entityNode>
<entityNode>
<name>Group14</name>
<kind v="123" />
</entityNode>
<entityNode>
<name>Group4</name>
<kind v="123" />
......
......@@ -17,7 +17,8 @@ var res = {
"childField":"TASK_ID",
"parentField":"TASK_TASKID",
"contactIdField":"OBJECT_ROWID"
}
},
"Advertising": {}
}
result.string(JSON.stringify(res))
\ No newline at end of file
......@@ -25,6 +25,9 @@ var res = {
"childField":"CAMPAIGN_ID",
"parentField":"CAMPAIGNID",
"contactIdField":"CONTACT_ID"
},
"Advertising": {
"contactIdField":"CONTACT_ID"
}
};
......
......@@ -636,6 +636,59 @@
<iconId>VAADIN:CURLY_BRACKETS</iconId>
<stateProcess>%aditoprj%/entity/Activity_entity/entityfields/openadminview/stateProcess.js</stateProcess>
</entityActionField>
<entityConsumer>
<name>AdvertisingItems</name>
<state>EDITABLE</state>
<stateProcess>%aditoprj%/entity/Activity_entity/entityfields/advertisingitems/stateProcess.js</stateProcess>
<dependency>
<name>dependency</name>
<entityName>AdvertisingItem_entity</entityName>
<fieldName>AdvertisingItemsForContext</fieldName>
</dependency>
<children>
<entityParameter>
<name>RowId_param</name>
<valueProcess>%aditoprj%/entity/Activity_entity/entityfields/advertisingitems/children/rowid_param/valueProcess.js</valueProcess>
</entityParameter>
<entityParameter>
<name>AdvertisingId_param</name>
<valueProcess>%aditoprj%/entity/Activity_entity/entityfields/advertisingitems/children/advertisingid_param/valueProcess.js</valueProcess>
</entityParameter>
</children>
</entityConsumer>
<entityField>
<name>hasAdvertising</name>
<title>Advertising shipment</title>
<description>controlls wether Advertisings Items can be added or not </description>
<contentType>BOOLEAN</contentType>
<stateProcess>%aditoprj%/entity/Activity_entity/entityfields/hasadvertising/stateProcess.js</stateProcess>
<valueProcess>%aditoprj%/entity/Activity_entity/entityfields/hasadvertising/valueProcess.js</valueProcess>
</entityField>
<entityConsumer>
<name>AdvertisingInformationConsumer</name>
<isOneToOneRelationship v="true" />
<state>EDITABLE</state>
<stateProcess>%aditoprj%/entity/Activity_entity/entityfields/advertisinginformationconsumer/stateProcess.js</stateProcess>
<dependency>
<name>dependency</name>
<entityName>Advertising_entity</entityName>
<fieldName>BasicInfoAdvertising</fieldName>
</dependency>
<children>
<entityParameter>
<name>RowId_param</name>
<valueProcess>%aditoprj%/entity/Activity_entity/entityfields/advertisinginformationconsumer/children/rowid_param/valueProcess.js</valueProcess>
</entityParameter>
<entityParameter>
<name>ContactIds_param</name>
<valueProcess>%aditoprj%/entity/Activity_entity/entityfields/advertisinginformationconsumer/children/contactids_param/valueProcess.js</valueProcess>
</entityParameter>
</children>
</entityConsumer>
<entityParameter>
<name>AdvActivityId_param</name>
<expose v="true" />
</entityParameter>
</entityFields>
<recordContainers>
<dbRecordContainer>
......
import("system.entities");
import("system.result");
import("system.neon");
import("system.vars");
var contactIds = [];
var conf = entities.createConfigForLoadingConsumerRows();
conf.consumer("Links");
conf.fields(["OBJECT_TYPE", "OBJECT_ROWID"]);
var links = entities.getRows(conf);
links.forEach(function(link)
{
if(link["OBJECT_TYPE"] == "Person")
{
contactIds.push( link["OBJECT_ROWID"]);
}
});
result.string(JSON.stringify(contactIds));
import("system.vars");
import("system.result");
result.string(vars.get("$field.ACTIVITYID"));
\ No newline at end of file
import("Util_lib");
import("system.neon");
import("system.vars");
import("system.result");
result.string(Utils.toBoolean(vars.get("$field.hasAdvertising")) ? neon.COMPONENTSTATE_EDITABLE : neon.COMPONENTSTATE_INVISIBLE);
\ No newline at end of file
import("Util_lib");
import("system.result");
import("system.logging");
import("system.entities");
var conf = entities.createConfigForLoadingConsumerRows();
conf.consumer("AdvertisingInformationConsumer");
conf.fields(["ADVERTISINGID"]);
var adv = entities.getRows(conf);
result.string((Utils.toBoolean(adv[0])) ? adv[0]["ADVERTISINGID"] : "");
\ No newline at end of file
import("system.vars");
import("system.result");
result.string(vars.getString("$field.ACTIVITYID"));
\ No newline at end of file
import("Util_lib");
import("system.entities");
import("system.vars");
import("system.result");
import("KeywordRegistry_basic");
import("system.neon");
var state = neon.COMPONENTSTATE_INVISIBLE;
if(Utils.toBoolean(vars.get("$field.hasAdvertising")))
{
//only when there is a advertising we can load it
var conf = entities.createConfigForLoadingConsumerRows();
conf.consumer("AdvertisingInformationConsumer");
conf.fields(["STATUS"]);
var adv = entities.getRows(conf);
if(adv[0]["STATUS"] == $KeywordRegistry.advertisingStatus$Open())
{
state = neon.COMPONENTSTATE_EDITABLE;
}
else
{
state = neon.COMPONENTSTATE_READONLY;
}
}
result.string(state);
\ No newline at end of file
import("system.vars");
import("system.result");
result.string(vars.getString("$field.ACTIVITYID"));
\ No newline at end of file
import("system.result");
import("system.neon");
import("system.vars");
var ret = neon.COMPONENTSTATE_INVISIBLE;
if(vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW )
{
ret = neon.COMPONENTSTATE_EDITABLE;
}
else if(vars.get("$this.value") > 0)
{
ret = neon.COMPONENTSTATE_READONLY;
}
result.string(ret);
\ 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