[Solved] How to create reusable UI control using JavaScript [closed]

Look into javascript templating. See mustache.js for one example. e.g. <script type=”text/template” id=”template”> {{#elements}} <div id=”{{id}}”> {{content}} </div> {{/elements}} </script> And your JavaScript: var view = { “elements”: [ { id: “one”, content: “Lorem ipsum dolor” }, { id: “two”, content: “Sit amet consectetur” } ] } var template = document.getElementById(“template”).innerHTML; var output = Mustache.render(template, … Read more

[Solved] I have a local json file and i want to display its data in listbox [closed]

You might want to elaborate and maybe read a little, although something like this shows how you can get data out of the JSON response. <!DOCTYPE html> <html lang=”en”> <head> <meta charset=”utf-8″ /> <title></title> <script src=”https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js”> </script> <script type=”text/javascript”> $(function() { $.getJSON( “http://yourserver/test.json”, function( data ) { alert (data[“data”][0][“text”]); }); }); </script> </head> <body> </body> … Read more

[Solved] SAP UI5 vs web dynpro [closed]

Please find comments below for your questions: (1) Is Webdynpro plays role like Servlets and JSP for middle ware programming? Not Exactly, Web Dynpro ABAP is the SAP standard UI technology for developing Web applications in the ABAP environment. It consists of a runtime environment and a graphical development environment with special Web Dynpro tools … Read more

[Solved] Master menu is not visible on mobile devices but is visible on InternetExplorer

I’ve found it out: Even with the postet “tricks”, the SplittApp class is not available for the Phone category. So, to see the masterView, I have created a PopUpMenu, which looks like the MasterPage. Everything fine know and thank you for downgrading my question, because nobody knows that exactly. solved Master menu is not visible … Read more

[Solved] How to format “MM/yyyy” pattern to locale-dependent ” / yyyy” in SAPUI5?

Try with: <Text text=”{ path: ‘Period’, type: ‘sap.ui.model.type.Date’, formatOptions: { pattern: ‘MMM / yyyy’, source: { pattern: ‘MM/yyyy’ } } }” /> Here is a working demo (Click on Run code snippet): sap.ui.getCore().attachInit(() => sap.ui.require([ “sap/ui/core/Fragment”, ], Fragment => Fragment.load({ definition: `<Text xmlns=”sap.m” text=”{ value: ’12/2019′, type: ‘sap.ui.model.type.Date’, formatOptions: { pattern: ‘MMM / yyyy’, source: … Read more

[Solved] SAPUI5 Refresh the service

Consider the model and refresh the omodel… Ex: var oModel = sap.ui.model.odata.ODataModel(“your url”); sap.ui.getCore().setModel(oModel); while refreshing the model…. sap.ui.getCore().getModel().refresh(true); 1 solved SAPUI5 Refresh the service

[Solved] Converting ODataModel into JSON Model

As your code seems really unclear, here’s a pointer on how you could implement it: You read the OData response into a JSONModel: var oModel2 = new sap.ui.odata.ODataModel(); var oODataJSONModelDLSet = new sap.ui.json.JSONModel(); this.getView().setModel(oODataJSONModelDLSet, “jsonmodel”); // etc oModel2.read(“/SEARCH_DLSet” + filterString, null, null, false, function (oData, oResponse) { oODataJSONModelDLSet.setData({ DLSet: oData }); }); …you then bind … Read more