안녕하세요, 저는 대화 상자 마녀가 콘솔의 오류 내용을 버튼에서 표시해야합니다.대화 sapui5 oError.body 렌더링 렌더링
업데이트 CRUD 내부에는 작업이 특정 상황에있는 경우 콘솔에서 오류를 반환해야합니다. 오류 기능의 코드입니다.
function(oError){
var StringoError = JSON.parse(oError.response.body);
/*alert("Error!\n"+oError.message);*/
alert(StringoError.error.message.value);
나는 그것이 작동하는 2 개의 경고를 사용하는 경우 ...하지만 지금은 사용자 경험을 스타일과 대화/팝 오버/팝업으로하고 Error.message 및 StringoError.error.message.value의 내용을 넣어해야합니다. . 그래서 난이 다음과 같이 구현 :
var dialog = new Dialog({
title: (oError.message),
type: 'Message',
state: 'Error',
content: new Text({
text: JSON.parse(oError.response.body).error.message.value,
}),
beginButton: new sap.m.Button({
text: 'Close',
press: function() {
dialog.close();
}
}),
afterClose: function() {
dialog.destroy();
}
});
dialog.open();
});
문제는 내가 제목을 볼 수 있다는 것입니다하지만 난 error.message.value을 볼 수 콘솔가 오류로 다시 저를 제공합니다
The renderer for class sap.ui.core.Control is not defined or does not define a render function! Rendering of __control0 will be skipped!