私はextJSを初めて使用し、次の機能を実装しようとしています:
extJS を使用して変換された 2 つの選択ドロップダウン メニューがあります。1 つのコンボ ボックスの値が選択されている場合、他の値を既定値に戻すにはどうすればよいですか?
ありがとう。
編集:今までのコード:
Ext.onReady(function(){
var converted = new Ext.form.ComboBox({
typeAhead: true,
triggerAction: 'all',
transform:'id_Select1',
width:600,
forceSelection:true,
emptyText:'Select'
});
var convertedCdr = new Ext.form.ComboBox({
typeAhead: true,
triggerAction: 'all',
transform:'id_select2',
width:600,
forceSelection:true,
emptyText:'Select'
});
});
ColdFusion を使用してデータベースにクエリを実行し、ドロップダウン メニューに入力しています。
<cfquery name="getData1" datasource="abc">
SELECT * FROM table1
</cfquery>
<cfquery name="getData2" datasource="abc">
SELECT * FROM table2
</cfquery>
<select name="select1" id="select1">
<cfoutput query="getData1">
<option value="#getData1.Id#">#getData1.name#</option>
</cfoutput>
</select>
<select name="select2" id="select1">
<cfoutput query="getData2">
<option value="#getData2.Id#">#getData2.name#</option>
</cfoutput>
</select>