我在用extjs做一个修改功能的时候在从结果列表点击编辑跳转到修改通话记录类型页面,需要将结果列表那边的值(呼叫类型、通话记录类型、备注)同时传到通话记录类型页面,并且将呼叫类型同时也传入到通话记录类型页面的呼叫类型和通话记录类型的第一个下拉框,这是我写的呼叫类型页面的代码请问如何才能让下拉框也同时将以上的值分别显示。   下面的下拉框是三级菜单。        extjs

解决方案 »

  1.   

    setValue( value ) : Ext.form.field.Field6Sets the specified value(s) into the field. For each value, if a record is found in the store that matches based on the valueField, then that record's displayField will be displayed in the field. If no match is found, and the valueNotFoundText config option is defined, then that will be displayed as the default field text. Otherwise a blank value will be shown, although the value will still be set.Available since: 1.1.0
    Parameters    value : String/String[]    The value(s) to be set. Can be either a single String or Ext.data.Model, or an Array of Strings or Models.Returns    Ext.form.field.Field    thisOverrides: Ext.form.field.Text.setValuehttp://docs.sencha.com/extjs/4.1.3/#!/api/Ext.form.field.ComboBox-method-setValue