我試圖調用從控制器中寫入的AJAX調用的視圖,也發送存儲在模型中的數據。ExtJs控制器使用數據調用視圖
這是呼叫:
var dummyAttivita = Ext.create('appTrial.model.Attivita', {
id: 1,
nomeAttivita : 'il Chiosco',
codiceAttivita: 'ago123'
});
.
.
.
doLogin: function() {
// called whenever the Login button is tapped
var codAttivita = Ext.getCmp('codAttivita').getValue();
if(codAttivita != null || codAttivita !== undefined) {
if (codAttivita.length > 0) {
if (codAttivita === dummyAttivita.get('codiceAttivita')) {
Ext.Msg.alert('', 'entro', Ext.emptyFn);
var attivitaAssociata = Ext.encode(dummyAttivita.getFields);
Ext.Ajax.request({
url : 'app/view/Postazione.js/',
method:'POST',
params,: {attivitaAssociata : dummyAttivita.getFields}
scope : this,
success : function(response, opts){
//What should I put here???
},
//method to call when the request is a failure
failure : function(response, opts){
Ext.Msg.alert('', 'Nothing', Ext.emptyFn);
}
});
} else {
Ext.Msg.alert('', 'Il codice inserito non è associato ad alcuna attivita', Ext.emptyFn);
}
} else {
Ext.Msg.alert('', 'Inserisci il codice di una attivita', Ext.emptyFn);
}
}
},
什麼我不理解是如何加載的URL參數中指定的新視角,也將存儲在PARAMS數據。 有沒有人有任何想法?
在此先感謝
前
那是什麼視圖(表格面板,標籤面板或容器),它包含什麼? – RE350 2014-10-07 15:37:15
這是一個簡單的容器,只是HTML文本的一刻;是否必須使用調用和調用視圖來更新帖子? – Ago 2014-10-07 15:42:26