Sencha form에서 결과값 가져오기

2024. 12. 26. 18:41Javascript/Sencha

failure: function(form, action) {
    let result = {};
    try {
        result = Ext.decode(action.response.responseText); // Attempt JSON parsing
    } catch (e) {
        result.message = 'Invalid server response';
    }

    console.log(result);
    Ext.Msg.alert('Failure', result.message || 'File upload failed.');
}