Assigning condition from system variables window.
This commit is contained in:
@@ -1874,8 +1874,11 @@ ProcessMapContext.prototype.caseTrackerObjects= function()
|
|||||||
var btnCondition = new Ext.Button({
|
var btnCondition = new Ext.Button({
|
||||||
id: 'btnCondition',
|
id: 'btnCondition',
|
||||||
text: 'Assign Condition',
|
text: 'Assign Condition',
|
||||||
handler: function () {
|
handler: function (s) {
|
||||||
|
var rowSelected = Objectsgrid.getSelectionModel().getSelections();
|
||||||
|
workflow.gridRowSelected = rowSelected;
|
||||||
ProcMapObj.ExtVariables();
|
ProcMapObj.ExtVariables();
|
||||||
|
//console.log(rowData);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -2135,7 +2138,19 @@ ProcessMapContext.prototype.ExtVariables = function()
|
|||||||
//plugins: [editor],
|
//plugins: [editor],
|
||||||
//loadMask : true,
|
//loadMask : true,
|
||||||
loadingText : 'Loading...',
|
loadingText : 'Loading...',
|
||||||
border: false
|
border: false,
|
||||||
|
listeners: {
|
||||||
|
//rowdblclick: alert("ok"),
|
||||||
|
rowdblclick: function(){
|
||||||
|
var objectGridRow = workflow.gridRowSelected;
|
||||||
|
var rowSelected = this.getSelectionModel().getSelected();
|
||||||
|
var rowLabel = rowSelected.data.label;
|
||||||
|
objectGridRow[0].set("CTO_CONDITION",rowLabel);
|
||||||
|
window.hide();
|
||||||
|
//return rowSelected;
|
||||||
|
//Ext.getCmp('activator').setIcon();
|
||||||
|
}
|
||||||
|
}
|
||||||
}]
|
}]
|
||||||
},{
|
},{
|
||||||
title:'Process',
|
title:'Process',
|
||||||
@@ -2163,8 +2178,9 @@ ProcessMapContext.prototype.ExtVariables = function()
|
|||||||
//rowdblclick: alert("ok"),
|
//rowdblclick: alert("ok"),
|
||||||
rowclick: function(){
|
rowclick: function(){
|
||||||
var rowSelected = this.getSelectionModel().getSelected();
|
var rowSelected = this.getSelectionModel().getSelected();
|
||||||
var rowLabel=rowSelected.data.label;
|
var rowLabel = rowSelected.data.label;
|
||||||
alert(rowLabel);
|
return rowSelected;
|
||||||
|
window.hide();
|
||||||
//Ext.getCmp('activator').setIcon();
|
//Ext.getCmp('activator').setIcon();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user