Skip to content
Snippets Groups Projects
Commit 60bc7417 authored by Martin Bilda's avatar Martin Bilda
Browse files

1060809 - state Process added; addApp-Process added

parent cf8f128d
No related branches found
No related tags found
No related merge requests found
......@@ -14199,13 +14199,13 @@
<entityFieldDb>
<name>MST_TEAMID</name>
<dbName></dbName>
<primaryKey v="true" />
<primaryKey v="false" />
<columnType v="1" />
<size v="36" />
<scale v="0" />
<notNull v="true" />
<isUnique v="true" />
<index v="true" />
<notNull v="false" />
<isUnique v="false" />
<index v="false" />
<documentation></documentation>
<title></title>
<description></description>
......@@ -14267,12 +14267,12 @@
<description></description>
</entityFieldDb>
<entityFieldDb>
<name>WEB_URL</name>
<name>FINAL_DELETE_DATE</name>
<dbName></dbName>
<primaryKey v="false" />
<columnType v="12" />
<size v="255" />
<scale v="0" />
<columnType v="93" />
<size v="29" />
<scale v="9" />
<notNull v="false" />
<isUnique v="false" />
<index v="false" />
......@@ -14280,6 +14280,20 @@
<title></title>
<description></description>
</entityFieldDb>
<entityFieldDb>
<name>MST_ID</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>
</entityFields>
</entityDb>
</entities>
......
......@@ -584,6 +584,7 @@
</entityConsumer>
<entityActionGroup>
<name>MST_TeamActions</name>
<stateProcess>%aditoprj%/entity/Activity_entity/entityfields/mst_teamactions/stateProcess.js</stateProcess>
<children>
<entityActionField>
<name>importFromTeams</name>
......
import("system.neon");
import("system.result");
import("system.project");
var isTeamsEnabled = project.getInstanceConfigValue(teamsIsEnabled, null);
if(isTeamsEnabled)
{
result.string(neon.COMPONENTSTATE_EDITABLE);
}
else
{
result.string(neon.COMPONENTSTATE_DISABLED);
}
\ No newline at end of file
......@@ -203,6 +203,7 @@
<entityActionGroup>
<name>MSTeamsActionGroup</name>
<title>MS Teams</title>
<stateProcess>%aditoprj%/entity/Member_entity/entityfields/msteamsactiongroup/stateProcess.js</stateProcess>
<children>
<entityActionField>
<name>createTeam</name>
......@@ -233,7 +234,7 @@
<onActionProcess>%aditoprj%/entity/Member_entity/entityfields/msteamsactiongroup/children/addapp/onActionProcess.js</onActionProcess>
<iconId>VAADIN:MOBILE</iconId>
<stateProcess>%aditoprj%/entity/Member_entity/entityfields/msteamsactiongroup/children/addapp/stateProcess.js</stateProcess>
<tooltip>Fügt eine App zum Team hinzu</tooltip>
<tooltip>Adds the MST ADITO App to the MSTTeam</tooltip>
</entityActionField>
<entityActionField>
<name>chooseTeam</name>
......
import("system.teams");
import("Sql_lib");
import("system.neon");
import("system.project");
import("system.logging");
var teamId = newSelect("MST_TEAMID")
.from("MST_TEAM")
.where("MST_TEAM.OBJECT_ROWID", "$param.ObjectRowId_param")
var teamId = newSelect("MST_TEAM_ID")
.from("SALEPROJECT")
.where("SALESPORJECT.SALESPROJECTID", "$param.ObjectRowId_param")
.cell();
//DAFÜR MUSS ES EIN DESIGNER FELD GEBEN
var appId = "27888276-ddc1-4e24-a07c-1023996fd892"
teams.addAppToTeam(teamId, appId);
neon.refreshAll();
\ No newline at end of file
var appId = project.getInstanceConfigValue("teamsAppId", null);
teams.addApp(teamId, appId)
\ No newline at end of file
import("Sql_lib");
import("system.vars");
import("system.neon");
var url = "https://teams.microsoft.com/l/team/19:0062b1c861df409391eaf0329b99db68%40thread.tacv2/conversations?groupId=c4c6a313-3d12-4941-900e-afc464755188&tenantId=bb59bb5b-90c7-41f9-85aa-f40da5c0c68a";
var webUrl = newSelect("WEB_URL")
.from("MST_TEAM")
.where("MST_TEAM.OBJECT_ROWID", vars.get("$field.OBJECT_ROWID"))
.cell();
neon.openUrl(url, true)
import("system.vars");
import("system.teams");
import("Sql_lib");
import("system.neon");
......@@ -5,7 +6,7 @@ import("system.neon");
var teamId = newSelect("MST_TEAMID")
.from("MST_TEAM")
.where("MST_TEAM.OBJECT_ROWID", "$param.ObjectRowId_param")
.where("MST_TEAM.OBJECT_ROWID", vars.get("$field.OBJECT_ROWID"))
.cell();
//Hat dieses Team mehrere Projekte??
......@@ -13,16 +14,13 @@ var teamIds = newSelect("MST_TEAMID")
.from("MST_TEAM")
.where("MST_TEAM.MST_TEAMID", teamId).arrayRow();
teams.unarchiveTeamAndRestoreGroup(teamId);
teams.unarchiveTeam(teamId);
for(var i = 0; i<teamIds.length; i++)
{
newWhere("MST_TEAM.MST_TEAMID", teamIds[i])
.updateFields({
"IS_ARCHIVED" : "0",
"FINAL_DELETE_DATE" : ""
});
}
neon.refreshAll();
\ No newline at end of file
{
newWhere("MST_TEAM.MST_TEAMID", teamIds[i])
.updateFields({
"IS_ARCHIVED" : "0",
"FINAL_DELETE_DATE" : ""
});
}
\ No newline at end of file
import("system.neon");
import("system.result");
import("system.project");
var isTeamsEnabled = project.getInstanceConfigValue(teamsIsEnabled, null);
if(isTeamsEnabled)
{
result.string(neon.COMPONENTSTATE_EDITABLE);
}
else
{
result.string(neon.COMPONENTSTATE_DISABLED);
}
\ 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