Hi,
In dialog box i have sap.m.Text control
for that i have to set text which is there in i18n
i tried using below code its not working.
var dialogmasterlist = new sap.m.Dialog({
title: 'Warning',
type: 'Message',
state: 'Warning',
content: new sap.m.Text({
text:"{i18n>notificationChangeAlert}"
}),
beginButton: new sap.m.Button({
text: 'Yes',
press: function() {
alert("Yes ");
dialogmasterlist.close();
}
}),
endButton: new sap.m.Button({
text: 'No',
press: function() {
alert("NO");
dialogmasterlist.close();
}
}),
});
In view its working problem only in controller.
Request clarification before answering.
You could try doing something like
this.getView().getModel("i18n").getResourceBundle().getText("notificationChangeAlert");
Regards,
Jamie
SAP - Technology RIG
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 7 | |
| 4 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.