1
私は自分のアプリケーションにExtJsを使用しています。私はいくつかのフィールドがあるウィンドウを作った。 1つのフィールドは、ウィンドウが表示されるたびに変更される名前です。 しかし、私はボタンをクリックするとウィンドウを破壊していないので、再びレンダリングせずに前のデータのみを表示します。どのように私は新しいデータを確認します。フォームでの私のフィールドのテキストフィールドの値を変更する方法ウィンドウが表示されるたびに
私のコード
コードウィンドウのフィールドを設定するウィンドウ
items: [
{
xtype: 'combobox',
name: 'Assigned To',
queryMode: 'local',
store: this.getResourceStore(),
displayField: 'svmx_name',
labelAlign: 'top',
fieldLabel: 'Assigned_To',
listeners: {
scope: this,
select: function (combo, record, index) {
var form = display_form.getForm();
var id = record.getId();
form.findField('ResourceId').setValue(id);
},
afterrender: function (combo, record, index) {
console.log(this.getResourceName());
combo.setValue(this.getResourceName());
},
}
},
に存在します。
if (!this.win) {
this.win = Ext.widget({
xtype: 'editorwindow',
resourceStore: Ext.getCmp('scheduler1').getResourceStore(),
eventStore: Ext.getCmp('scheduler1').getEventStore(),
wrapper: Ext.getCmp('scheduler1').getWrapper(),
resourceName: targetResource,
startdate: date,
targetData: dragSource.data,
});
}
this.win.show();
これはウィンドウの_show_イベントリスナーで処理しましたか? – scebotari66
どのように@scebotariのアイデアをすることができますか? 現在、私はすでにウィンドウがあるかどうかチェックしています。私はそれを破壊して新しいウィンドウを作成しています。新しいアイデアを探している –