Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var oRenderer = sap.ushell.Container.getRenderer("fiori2");
- oRenderer.setHeaderTitle("SID[client] of ABAP System");
- sap.ushell.Container.getRenderer("fiori2").addActionButton("sap.m.Button", {
- id: "tstBtn",
- text: "Push the Button",
- icon: "sap-icon://BusinessSuiteInAppSymbols/icon-face-very-happy",
- press: function(oEvent) {
- MessageToast.show(oEvent.getSource().getId() + " pressed");
- }
- }, true, true);
- var oRenderer = sap.ushell.Container.getRenderer("fiori2");
- var oEntry = {
- title: "Customer Customizing Options",
- icon: "sap-icon://BusinessSuiteInAppSymbols/icon-face-astonished",
- value: function() {
- return jQuery.Deferred().resolve("current Settings state");
- },
- content: function() {
- return jQuery.Deferred().resolve(new sap.m.Button("userPrefEntryButton", {
- id: "tstBtn2",
- text: "Button",
- press: function(oEvent) {
- MessageToast.show(oEvent.getSource().getId() + " pressed");
- }
- }));
- },
- onSave: function() {
- return jQuery.Deferred().resolve();
- }
- };
- oRenderer.addUserPreferencesEntry(oEntry);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement