Skip to content
Snippets Groups Projects
Commit 85182f2f authored by Johannes Hörmann's avatar Johannes Hörmann
Browse files

Buttons for Ticket-creation

parent 3ebc5f21
No related branches found
No related tags found
No related merge requests found
......@@ -46,7 +46,7 @@
<column name="CONTAINER" value="TaskType"/>
<column name="SORTING" valueNumeric="1"/>
<column name="ISACTIVE" valueNumeric="1"/>
<column name="ISESSENTIAL" valueNumeric="0"/>
<column name="ISESSENTIAL" valueNumeric="1"/>
</insert>
<insert tableName="AB_KEYWORD_ATTRIBUTERELATION">
<column name="AB_KEYWORD_ATTRIBUTERELATIONID" value="ca8e16d4-0bae-45e7-a288-0f8a846193f1"/>
......@@ -74,7 +74,7 @@
<column name="CONTAINER" value="TaskType"/>
<column name="SORTING" valueNumeric="2"/>
<column name="ISACTIVE" valueNumeric="1"/>
<column name="ISESSENTIAL" valueNumeric="0"/>
<column name="ISESSENTIAL" valueNumeric="1"/>
</insert>
<insert tableName="AB_KEYWORD_ATTRIBUTERELATION">
<column name="AB_KEYWORD_ATTRIBUTERELATIONID" value="6e54c8f3-f24b-411f-a3e3-eba878fdaa1b"/>
......
......@@ -480,6 +480,25 @@
<valueProcess>%aditoprj%/entity/Task_entity/entityfields/type_param/valueProcess.js</valueProcess>
<expose v="true" />
</entityParameter>
<entityActionGroup>
<name>tableActions</name>
<children>
<entityActionField>
<name>newBugTicket</name>
<title>New Bugticket</title>
<onActionProcess>%aditoprj%/entity/Task_entity/entityfields/tableactions/children/newbugticket/onActionProcess.js</onActionProcess>
<iconId>VAADIN:PUZZLE_PIECE</iconId>
<tooltip>New Bugticket</tooltip>
</entityActionField>
<entityActionField>
<name>newSupportTicket</name>
<title>New Supportticket</title>
<onActionProcess>%aditoprj%/entity/Task_entity/entityfields/tableactions/children/newsupportticket/onActionProcess.js</onActionProcess>
<iconId>VAADIN:QUESTION</iconId>
<tooltip>New Supportticket</tooltip>
</entityActionField>
</children>
</entityActionGroup>
</entityFields>
<recordContainers>
<dbRecordContainer>
......
import("system.vars");
import("ActivityTask_lib");
import("KeywordRegistry_basic");
import("Context_lib");
// no parentid as tickets do not use them
TaskUtils.createNewTask(undefined, undefined, ContextUtils.getCurrentContextId(), undefined, {Type_param: $KeywordRegistry.taskType$bugTicket()});
\ No newline at end of file
import("system.vars");
import("ActivityTask_lib");
import("KeywordRegistry_basic");
import("Context_lib");
// no parentid as tickets do not use them
TaskUtils.createNewTask(undefined, undefined, ContextUtils.getCurrentContextId(), undefined, {Type_param: $KeywordRegistry.taskType$supportTicket()});
\ No newline at end of file
......@@ -42,6 +42,7 @@
</timelineViewTemplate>
<tableViewTemplate>
<name>TasksTable</name>
<favoriteActionGroup1>tableActions</favoriteActionGroup1>
<entityField>#ENTITY</entityField>
<title></title>
<columns>
......@@ -70,6 +71,7 @@
</tableViewTemplate>
<treeTableViewTemplate>
<name>TasksTreeTable</name>
<favoriteActionGroup1>tableActions</favoriteActionGroup1>
<entityField>#ENTITY</entityField>
<columns>
<neonTableColumn>
......
......@@ -79,9 +79,9 @@ function TaskUtils () {}
/**
* Create a new task
*/
TaskUtils.createNewTask = function(pRowId, pAdditionalLinks, pParentContext, pParentId)
TaskUtils.createNewTask = function(pRowId, pAdditionalLinks, pParentContext, pParentId, pParams)
{
_ActivityTaskUtils._createNew("Task", pRowId, pAdditionalLinks, pParentContext, pParentId)
_ActivityTaskUtils._createNew("Task", pRowId, pAdditionalLinks, pParentContext, pParentId, pParams)
}
/**
......@@ -172,12 +172,16 @@ function _ActivityTaskUtils() {}
* Create a new task
* @ignore
*/
_ActivityTaskUtils._createNew = function(pContext, pRowId, pAdditionalLinks, pParentContext, pParentId)
_ActivityTaskUtils._createNew = function(pContext, pRowId, pAdditionalLinks, pParentContext, pParentId, pParams)
{
if (pAdditionalLinks == undefined)
pAdditionalLinks = [];
var params = {};
if (pParams)
params = pParams
if (pRowId)
{
params["ObjectId_param"] = ContextUtils.getCurrentContextId();
......
......@@ -48,7 +48,8 @@ $KeywordRegistry.taskStatus$ended = function(){return "7c9d6681-6cf5-4395-b276-3
$KeywordRegistry.taskType = function(){return "TaskType";};
$KeywordRegistry.taskType$Task = function(){return "4dee8727-8299-422e-ae41-6cdf9de2dfd7";};
$KeywordRegistry.taskType$Ticket = function(){return "f3da0edd-49d9-4061-98c1-8fda8631be7e";};
$KeywordRegistry.taskType$bugTicket = function(){return "f3da0edd-49d9-4061-98c1-8fda8631be7e";};
$KeywordRegistry.taskType$supportTicket = function(){return "7bf77721-470f-4cdf-a6af-452bf05a405b";};
$KeywordRegistry.productPricelist = function(){return "ProductPricelist";};
$KeywordRegistry.productPricelist$standardList = function(){return "02553fc7-4611-4914-8ff5-0b7c4e7531c9";};
......
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