• If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Announcement

Collapse
No announcement yet.

Problem Retrieving a Combobox Param for use in another Combobox

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Problem Retrieving a Combobox Param for use in another Combobox

    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'
                            }
                        })
    Last edited by JosephHarriman; 10-13-2015, 04:20 PM.

  • #2
    Too many versions installed. Will just recreate in Architect.

    Comment

    Working...
    X