HOR-163
This commit is contained in:
Paula V. Quispe
2016-03-02 14:51:27 -04:00
parent f395d4b6e0
commit c4dd8529ac

View File

@@ -728,7 +728,8 @@ function validateFieldSizeAutoincrement(valueType, defaultValue) {
storeId: "types", storeId: "types",
autoDestroy: true, autoDestroy: true,
fields: ["REP_TAB_TYPE", "type"] fields: ["REP_TAB_TYPE", "type"],
data : [['NORMAL',_("ID_GLOBAL")],['GRID',_("ID_GRID")]]
}); });
comboReport = new Ext.form.ComboBox({ comboReport = new Ext.form.ComboBox({
@@ -761,6 +762,7 @@ function validateFieldSizeAutoincrement(valueType, defaultValue) {
} }
}); });
dbConnectionsStore = new Ext.data.Store({ dbConnectionsStore = new Ext.data.Store({
//autoLoad: true, //autoLoad: true,
proxy : new Ext.data.HttpProxy({ proxy : new Ext.data.HttpProxy({
@@ -882,7 +884,7 @@ function validateFieldSizeAutoincrement(valueType, defaultValue) {
} }
}); });
comboReport.setReadOnly(isBpmn); comboReport.setDisabled(isBpmn);
processStore = new Ext.data.Store( { processStore = new Ext.data.Store( {
autoLoad: true, autoLoad: true,
@@ -938,6 +940,7 @@ function validateFieldSizeAutoincrement(valueType, defaultValue) {
} }
}); });
var rptPosArray = 0;
processComboBox = new Ext.form.ComboBox({ processComboBox = new Ext.form.ComboBox({
id: 'PROCESS', id: 'PROCESS',
fieldLabel : _("ID_CASESLIST_APP_PRO_TITLE"), fieldLabel : _("ID_CASESLIST_APP_PRO_TITLE"),
@@ -964,9 +967,11 @@ function validateFieldSizeAutoincrement(valueType, defaultValue) {
(dataStore[i].data.PRO_PROCESS_TYPE == "BPMN")? arrayBpmnTypeData : arrayClassicTypeData, false (dataStore[i].data.PRO_PROCESS_TYPE == "BPMN")? arrayBpmnTypeData : arrayClassicTypeData, false
); );
var dataStoreAux = types.getRange(0); var dataStoreAux = types.getRange(rptPosArray);
comboReport.setValue(dataStoreAux[0].data.REP_TAB_TYPE); comboReport.setValue(dataStoreAux[0].data.REP_TAB_TYPE);
comboReport.setDisabled(dataStore[i].data.PRO_PROCESS_TYPE === "BPMN");
comboGridsList.setVisible(false); comboGridsList.setVisible(false);
comboDbConnections.getStore().reload({params:{PRO_UID : Ext.getCmp('PROCESS').getValue()}}); comboDbConnections.getStore().reload({params:{PRO_UID : Ext.getCmp('PROCESS').getValue()}});