Skip to content
Snippets Groups Projects
Commit 07ce5852 authored by Pascal Neub's avatar Pascal Neub Committed by Benjamin Ulrich
Browse files

Update .liquibase/Data_alias/basic/_demoData/generatedData/communication.xml,...

Update .liquibase/Data_alias/basic/_demoData/generatedData/communication.xml, .liquibase/Data_alias/basic/_demoData/changelog.xml, .liquibase/Data_alias/basic/_demoData/generatedData/mst_team.xml files
parent 6aeee31e
No related branches found
No related tags found
No related merge requests found
Showing
with 94 additions and 169 deletions
<?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="drop_mstTeamLink.xml"/>
<include relativeToChangelogFile="true" file="insert_mstTeamAttribute.xml"/>
<include relativeToChangelogFile="true" file="insert_KeqwordEntryMSTActivityDirection.xml"/>
</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">
<changeSet author="" id="79d8f115-929f-4d4e-a961-0aefb807d90f">
<dropTable tableName="MST_TEAMLINK"/>
</changeSet>
</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="p.neub" id="29a9e33a-4c3f-4409-af9f-d676ef399103">
<insert tableName="AB_KEYWORD_ENTRY">
<column name="AB_KEYWORD_ENTRYID" value="7e21e85e-8091-48cb-8bdc-e7bef7fa1f80"/>
<column name="AB_KEYWORD_CATEGORY_ID" value="a5206aff-79f8-413e-a76d-4cb9d39694d3"/>
<column name="KEYID" value="MST-MESSAGE"/>
<column name="TITLE" value="MS-Teams Message"/>
<column name="CONTAINER" value="ActivityCategory"/>
<column name="SORTING" valueNumeric="8"/>
<column name="ISACTIVE" valueNumeric="1"/>
<column name="ISESSENTIAL" valueNumeric="0"/>
</insert>
</changeSet>
</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="p.neub" id="e14b152c-e772-40d3-b49a-d314cd0f38e4">
<insert tableName="AB_ATTRIBUTE">
<column name="AB_ATTRIBUTEID" value="9a93f671-fa9e-4783-8ae8-6cef76b3f62f"/>
<column name="ATTRIBUTE_ACTIVE" valueNumeric="1"/>
<column name="ATTRIBUTE_NAME" value="Team"/>
<column name="ATTRIBUTE_TYPE" value="OBJECTSELECTION"/>
<column name="DROPDOWNDEFINITION" value="MSTTeam_entity"/>
</insert>
<insert tableName="AB_ATTRIBUTEUSAGE">
<column name="AB_ATTRIBUTEUSAGEID" value="0929cd01-b445-42fc-8878-eebed8dabfd0"/>
<column name="AB_ATTRIBUTE_ID" value="9a93f671-fa9e-4783-8ae8-6cef76b3f62f"/>
<column name="MAX_COUNT" valueNumeric="1"/>
<column name="OBJECT_TYPE" value="Salesproject"/>
</insert>
</changeSet>
</databaseChangeLog>
\ No newline at end of file
......@@ -8,6 +8,7 @@
<include relativeToChangelogFile="true" file="Offer/changelog.xml"/>
<include relativeToChangelogFile="true" file="xRM-Service/changelog.xml"/>
<include relativeToChangelogFile="true" file="Mosaico/changelog.xml"/>
<include relativeToChangelogFile="true" file="MSTeams/changelog.xml"/>
<include relativeToChangelogFile="true" file="EwsContactSync/changelog.xml"/>
<include relativeToChangelogFile="true" file="Export/changelog.xml"/>
</databaseChangeLog>
......@@ -77,7 +77,6 @@
<include file="generatedData/mail_log.xml" relativeToChangelogFile="true"/>
<include file="generatedData/mail_run.xml" relativeToChangelogFile="true"/>
<include file="generatedData/mst_team.xml" relativeToChangelogFile="true"/>
<include file="generatedData/mst_teamlink.xml" relativeToChangelogFile="true"/>
<include file="generatedData/objectmember.xml" relativeToChangelogFile="true"/>
<include file="generatedData/observation.xml" relativeToChangelogFile="true"/>
<include file="generatedData/offer.xml" relativeToChangelogFile="true"/>
......@@ -113,4 +112,4 @@
<include file="generatedData/weblink_click.xml" relativeToChangelogFile="true"/>
<include file="generatedData/workflowsignal.xml" relativeToChangelogFile="true"/>
<include file="generatedData/workflowstartconfig.xml" relativeToChangelogFile="true"/>
</databaseChangeLog>
\ No newline at end of file
</databaseChangeLog>
......@@ -1539,4 +1539,4 @@
<column name="OBJECT_ROWID" value="59c9d416-0a39-4948-a540-f439178fbafe"/>
</insert>
</changeSet>
</databaseChangeLog>
\ No newline at end of file
</databaseChangeLog>
......@@ -3,4 +3,4 @@
<changeSet author="autogenerated" id="7ad7747a-cafd-4c32-813c-a23e47450f9e">
<delete tableName="mst_team"/>
</changeSet>
</databaseChangeLog>
\ No newline at end of file
</databaseChangeLog>
<?xml version="1.1" encoding="UTF-8" standalone="no"?>
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog" xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.6.xsd">
<changeSet author="autogenerated" id="c71eff7a-751b-487f-928d-c888e544df40">
<delete tableName="mst_teamlink"/>
</changeSet>
</databaseChangeLog>
\ No newline at end of file
......@@ -576,7 +576,7 @@
<children>
<entityActionField>
<name>importFromTeams</name>
<title>Import from Teams</title>
<title>Import from MS Teams</title>
<onActionProcess>%aditoprj%/entity/Activity_entity/entityfields/msteamsactions/children/importfromteams/onActionProcess.js</onActionProcess>
</entityActionField>
</children>
......
import("system.vars");
import("system.neon");
import("system.result");
import("system.neon");
import("system.vars");
import("Attribute_lib");
import("AttributeRegistry_basic");
import("MSTeams_lib");
var isTeamsEnabled = vars.get("$param.ObjectId_param") in MSTeamsUtils.getTeamLinkContexts() && MSTeamsUtils.isTeamsEnabled();
result.string(isTeamsEnabled ? neon.COMPONENTSTATE_EDITABLE : neon.COMPONENTSTATE_INVISIBLE);
\ No newline at end of file
var objectId = vars.get("$param.ObjectId_param");
var rowId = vars.get("$param.RowId_param");
var editable = MSTeamsUtils.isTeamsEnabled() && objectId && rowId && new AttributeRelationQuery(
rowId, $AttributeRegistry.mstTeam(), objectId).getSingleAttributeValue();
var res = neon.COMPONENTSTATE_INVISIBLE;
if(editable)
{
res = neon.COMPONENTSTATE_EDITABLE;
}
result.string(res);
......@@ -4,9 +4,13 @@
<title>Attribute</title>
<majorModelMode>DISTRIBUTED</majorModelMode>
<documentation>%aditoprj%/entity/AttributeRelation_entity/documentation.adoc</documentation>
<siblings>
<element>Salesproject_entity</element>
</siblings>
<grantUpdateProcess>%aditoprj%/entity/AttributeRelation_entity/grantUpdateProcess.js</grantUpdateProcess>
<grantDeleteProcess>%aditoprj%/entity/AttributeRelation_entity/grantDeleteProcess.js</grantDeleteProcess>
<contentTitleProcess>%aditoprj%/entity/AttributeRelation_entity/contentTitleProcess.js</contentTitleProcess>
<afterSave>%aditoprj%/entity/AttributeRelation_entity/afterSave.js</afterSave>
<titlePlural>Attributes</titlePlural>
<recordContainer>jdito</recordContainer>
<entityFields>
......
import("system.teams");
import("system.vars");
import("system.project");
import("AttributeRegistry_basic");
if(vars.get("$field.AB_ATTRIBUTE_ID") == $AttributeRegistry.mstTeam())
{
var teamId = vars.get("$field.VALUE");
var appId = project.getInstanceConfigValue("teamsAppId");
try
{
appId && teams.addApp(teamId, appId);
}
catch(ex)
{
// App is allready added
}
}
<?xml version="1.0" encoding="UTF-8"?>
<entity xmlns="http://www.adito.de/2018/ao/Model" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" VERSION="1.3.22" xsi:schemaLocation="http://www.adito.de/2018/ao/Model adito://models/xsd/entity/1.3.22">
<name>MSTTeamLink_entity</name>
<majorModelMode>DISTRIBUTED</majorModelMode>
<documentation>%aditoprj%/entity/MSTTeamLink_entity/documentation.adoc</documentation>
<siblings>
<element>Salesproject_entity</element>
<element>Member_entity</element>
</siblings>
<afterUiInit>%aditoprj%/entity/MSTTeamLink_entity/afterUiInit.js</afterUiInit>
<recordContainer>db</recordContainer>
<entityFields>
<entityProvider>
<name>#PROVIDER</name>
</entityProvider>
<entityProvider>
<name>#PROVIDER_AGGREGATES</name>
<useAggregates v="true" />
</entityProvider>
<entityField>
<name>MST_TEAMLINKID</name>
</entityField>
<entityField>
<name>MST_TEAM_ID</name>
<title>Team</title>
<mandatory v="true" />
<valueProcess>%aditoprj%/entity/MSTTeamLink_entity/entityfields/mst_team_id/valueProcess.js</valueProcess>
</entityField>
<entityField>
<name>OBJECT_ROWID</name>
<valueProcess>%aditoprj%/entity/MSTTeamLink_entity/entityfields/object_rowid/valueProcess.js</valueProcess>
</entityField>
<entityField>
<name>OBJECT_TYPE</name>
<valueProcess>%aditoprj%/entity/MSTTeamLink_entity/entityfields/object_type/valueProcess.js</valueProcess>
</entityField>
<entityParameter>
<name>ObjectRowId_param</name>
<expose v="true" />
</entityParameter>
<entityParameter>
<name>ObjectType_param</name>
<expose v="true" />
</entityParameter>
<entityConsumer>
<name>Teams</name>
<dependency>
<name>dependency</name>
<entityName>MSTTeam_entity</entityName>
<fieldName>TeamsByIdAndName</fieldName>
</dependency>
</entityConsumer>
<entityField>
<name>TEAMNAME</name>
<valueProcess>%aditoprj%/entity/MSTTeamLink_entity/entityfields/teamname/valueProcess.js</valueProcess>
</entityField>
<entityField>
<name>TEAM_ID_AND_NAME</name>
<documentation>%aditoprj%/entity/MSTTeamLink_entity/entityfields/team_id_and_name/documentation.adoc</documentation>
<title>Team</title>
<consumer>Teams</consumer>
<valueProcess>%aditoprj%/entity/MSTTeamLink_entity/entityfields/team_id_and_name/valueProcess.js</valueProcess>
<displayValueProcess>%aditoprj%/entity/MSTTeamLink_entity/entityfields/team_id_and_name/displayValueProcess.js</displayValueProcess>
</entityField>
</entityFields>
<recordContainers>
<dbRecordContainer>
<name>db</name>
<fromClauseProcess>%aditoprj%/entity/MSTTeamLink_entity/recordcontainers/db/fromClauseProcess.js</fromClauseProcess>
<conditionProcess>%aditoprj%/entity/MSTTeamLink_entity/recordcontainers/db/conditionProcess.js</conditionProcess>
<onDBInsert>%aditoprj%/entity/MSTTeamLink_entity/recordcontainers/db/onDBInsert.js</onDBInsert>
<onDBUpdate>%aditoprj%/entity/MSTTeamLink_entity/recordcontainers/db/onDBUpdate.js</onDBUpdate>
<alias>Data_alias</alias>
<recordFieldMappings>
<dbRecordFieldMapping>
<name>MST_TEAMLINKID.value</name>
<recordfield>MST_TEAMLINK.MST_TEAMLINKID</recordfield>
</dbRecordFieldMapping>
<dbRecordFieldMapping>
<name>MST_TEAM_ID.value</name>
<recordfield>MST_TEAMLINK.MST_TEAM_ID</recordfield>
</dbRecordFieldMapping>
<dbRecordFieldMapping>
<name>OBJECT_ROWID.value</name>
<recordfield>MST_TEAMLINK.OBJECT_ROWID</recordfield>
</dbRecordFieldMapping>
<dbRecordFieldMapping>
<name>OBJECT_TYPE.value</name>
<recordfield>MST_TEAMLINK.OBJECT_TYPE</recordfield>
</dbRecordFieldMapping>
<dbRecordFieldMapping>
<name>TEAMNAME.value</name>
<recordfield>MST_TEAM.TEAMNAME</recordfield>
</dbRecordFieldMapping>
</recordFieldMappings>
<linkInformation>
<linkInformation>
<name>178230f3-4ee4-4ec0-a7f6-4f4ddddbbb22</name>
<tableName>MST_TEAMLINK</tableName>
<primaryKey>MST_TEAMLINKID</primaryKey>
<isUIDTable v="true" />
<readonly v="false" />
</linkInformation>
<linkInformation>
<name>53378325-f195-4eb3-9e22-68fd769eef03</name>
<tableName>MST_TEAM</tableName>
<primaryKey>MST_TEAMID</primaryKey>
<isUIDTable v="false" />
<readonly v="true" />
</linkInformation>
</linkInformation>
</dbRecordContainer>
</recordContainers>
</entity>
import("system.vars");
import("system.neon");
import("system.entities");
//reload the teams once, because the cache might not be up-to-date
if (vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW || vars.get("$sys.recordstate") == neon.OPERATINGSTATE_EDIT)
{
entities.invalidateCache("MSTTeam_entity", "jdito");
entities.getRows(entities.createConfigForLoadingConsumerRows()
.consumer("Teams")
.fields(["UID", "TEAMNAME", "TEAMID_AND_NAME", "ISARCHIVED", "DESCRIPTION"])
);
}
\ No newline at end of file
= MSTTeamLink_entity
This entity represents a relation between a MST team and an object (e. g. a Sales Project).
\ No newline at end of file
import("system.result");
import("system.neon");
import("system.vars");
import("Util_lib");
var teamIdAndName = Utils.parseJSON(vars.get("$field.TEAM_ID_AND_NAME"));
if (teamIdAndName && (vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW || vars.get("$sys.recordstate") == neon.OPERATINGSTATE_EDIT))
result.string(teamIdAndName[0]);
\ No newline at end of file
import("system.neon");
import("system.vars");
import("system.result");
if (vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW)
result.string(vars.get("$param.ObjectRowId_param"));
\ No newline at end of file
import("system.neon");
import("system.vars");
import("system.result");
if (vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW)
result.string(vars.get("$param.ObjectType_param"));
\ No newline at end of file
import("system.vars");
import("system.result");
result.string(vars.get("$field.TEAMNAME"));
\ 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