Assigning condition from system variables window.

This commit is contained in:
safan
2011-01-14 10:48:33 +00:00
parent 619140e0c3
commit 7acf08c96c

View File

@@ -1878,7 +1878,7 @@ ProcessMapContext.prototype.caseTrackerObjects= function()
handler: function (s) { handler: function (s) {
var rowSelected = Objectsgrid.getSelectionModel().getSelections(); var rowSelected = Objectsgrid.getSelectionModel().getSelections();
if(rowSelected == '') if(rowSelected == '')
workflow.gridObjectRowSelected = rowSelected.store.items[0]; workflow.gridObjectRowSelected = Objectsgrid.store.data.items;
else else
workflow.gridObjectRowSelected = rowSelected; workflow.gridObjectRowSelected = rowSelected;
//var rowSelected = Objectsgrid; //var rowSelected = Objectsgrid;
@@ -2151,8 +2151,14 @@ ProcessMapContext.prototype.ExtVariables = function()
var getObjectGridRow = workflow.gridObjectRowSelected; var getObjectGridRow = workflow.gridObjectRowSelected;
var rowSelected = this.getSelectionModel().getSelected(); var rowSelected = this.getSelectionModel().getSelected();
var rowLabel = rowSelected.data.label; var rowLabel = rowSelected.data.variable;
getObjectGridRow[0].set("CTO_CONDITION",rowLabel);
//Assigned new object with condition
if(typeof getObjectGridRow.colModel != 'undefined')
sfddsfdf;
//Assigning / updating Contion for a row
else
getObjectGridRow[0].set("CTO_CONDITION",rowLabel);
window.hide(); window.hide();
//return rowSelected; //return rowSelected;
//Ext.getCmp('activator').setIcon(); //Ext.getCmp('activator').setIcon();