I'm trying to bring in the selected value from one combobox to send as a parm in another combobox. I've Googled a lot and have tried many things. Nothing works. Can someone help point me in the right direction? Thanks.
Code:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="Copyright" content="Copyright 2008-2012 CNX Corporation, All Rights Reserved"> <title>Valence - AutoCode - Grid Maintenance Template</title> <link rel="stylesheet" type="text/css" href="/extjs/resources/css/ext-all.css" /> <link rel="stylesheet" type="text/css" href="/vvresources/valence.css" /> <script type="text/javascript" src="/extjs/adapter/ext/ext-base.js"></script> <script type="text/javascript" src="/extjs/ext-all-debug.js"></script> <script type="text/javascript" src="/vvresources/valence.js"></script>
Code:
xtype:'combo', id:'add_MTMAJMIN', fieldLabel:'Stop Level', emptyText: 'Select Level', selectOnTab: true, triggerAction: 'all', editable: false, forceSelection:true, selectOnFocus: true, valueField: 'text', displayField: 'text', mode: 'local', store: new Ext.data.SimpleStore({ fields: ['text'], data: [['Major'], ['Minor']] }), listeners: { scope : this, select: function MajMin_Select (combo, record, index) { var svmajmin = combo.getValue(); // alert("majmin: " + svmajmin); } }
Code:
xtype:'combo', id:'add_MTREASON', fieldLabel:'Reason', emptyText: 'Select Reason', selectOnTab: true, triggerAction: 'all', editable: false, forceSelection:true, valueField: 'DRREASON', displayField: 'DRREASON', store: new Ext.data.JsonStore({ url: 'vvcall.pgm', fields: ['DRREASON'], root: 'REASON', autoLoad: false, baseParams: { action: 'getReasons', pgm: 'GETREASON' } })
Comment