Hi all,
I am trying to implement sap.viz chart in my UI5 application.
While the error message is clear that it is failing to load the sap.viz library, I am not able to determine how to fix it.
Any pointers?
Thanks and regards,
Kapil.
Hi all,
I am trying to implement sap.viz chart in my UI5 application.
While the error message is clear that it is failing to load the sap.viz library, I am not able to determine how to fix it.
Any pointers?
Thanks and regards,
Kapil.
Hi, i am just getting to SAPUI5 arena and started building a new UI5 app. I have a table control and dynamically assigning the values from the oData. When i try to format the date, numbers or alignment in the columns, they won't do. I have tried various options from the forums etc. but nothing seemed to help. I know i am wrong somewhere but not sure where.
1) Ex: Date format: The type that i put in fails with undefined error. If i format it as the number it tries to format it. The underlying datatype from oData is Datetime.
new sap.ui.table.Column("colDtReq", { | |||
label: new sap.ui.commons.Label({text: "Date of Request", wrapping: true}), | |||
template: new sap.ui.commons.TextView({ | |||
text: { | |||
path: "Erdat" | |||
type: new sap.ui.model.type.DateTime({pattern: "MM/dd/yyyy hh:mm"}) | |||
}, | |||
editable: false | |||
}), | |||
sortProperty: "Erdat", | |||
filterProperty: "{Erdat}" |
Thanks
Besides for starting Fiori apps, we would like to use the launchpad also for showing some general information to the user. We have made a copy of the new tile template to accomplish this. The newstile is twice the width of a "normal" tile, but we would like to have a template which has 3x the size.
Does anyone know how to accomplish this?
Kind regards,
John.
Hello everyone,
I use the following statement to create a VizFrame column chart:
new sap.viz.ui5.controls.VizFrame(this.createId("vizFrame"), {
uiConfig : {
applicationSet : 'fiori'
},
vizProperties : {
interaction : {
selectability : {
mode : "none"
}
},
title : {
visible : false
},
legend : {
visible : false
},
yAxis : {
label : {
visible : false
}
}
},
vizType : "column",
width : "1000px",
height : "250px"
})
While some properties such as title.visible = false work, others such as yAxis.label.visible or interaction.selectability.mode seem to be ignored.
Does somebody have an idea which cause this might have?
I tried to check if those settings "reach" sap-viz by calling oVizFrame.getVizProperties() after the vizFrame instantiation. However, this yielded the following exception: Uncaught TypeError: Cannot read property 'legendGroup' of undefined sap-viz-controls.js:2
Hi,
I have setup the WebIDE locally and have a destination set up to our Gateway system.I am able to browse its services catalog from WebIDE. However when I want to extend a project and get the BSP application from the Gateway server through Extension Project > Remote > SAPUI5 ABAP Repository, I get the following error:
Authorization error. Unable to access the system.
I have checked my Gateway authorizations but that doesn't seem the problem (SAP_ALL, SAP_NEW, checks are okay, traced my user). It seems to be an issue within WebIDE. I couldn't find any logs within Orion.
Does anybody have a clue what's wrong?
Kind regards,
Hilco Broens
Hi guys,
I'm having trouble passing the data from the listview screen to another screen.
Here is the passing function:
handleListSelect : function (evt) {
var app = sap.ui.getCore().byId("App--app");
var context = evt.getParameter("listItem").getBindingContext().getPath().substr(1);
app.to("App--orderView", context);
},
and here is the "receiving" part:
<Input
value = "{Name}" />
<Input
value = "{Client}" />
Is there something else I should add to make it work ?
Thanks,
Marius
After working for around 9-years on Java, finally got my first chance to work productively on Pure Web Application. It is based on OpenUI5 technology, but still has server side using Java environment (OSGi runtime). Got my hands dirty into javascript, jquery, openui5 to that extend that I started giving session to colleagues joining later point of time.
Then it so happened that during my transit from Delhi to Bangalore, I happened to be bored by the time I had stepped on the airplane. The flight had delayed and hence I switched on my laptop to search for peace. We all have this list somewhere stating 'things-to-do' and 'books-to-read'. I had one similar book about node.js (the node beginner book - Manuel Kiessling) and I began to read it, considering that by now I understand the design-patterns of javascript. In the next 3hrs and the weekend that followed, I was hooked onto node.js.
The Problem Statement
"Behind every successful man, there is a wife...and an unsuccessful man, a mistress" - A quote from the web-world, where I would say, my journey to Web-development has begin to be successful because of my better half. My wife (herself a web-developer), asked me what real-world-problem are you trying to solve. I didn't have an answer at that point of time, but soon I realized the complexity of my day-today-work (of using complex client/server infrastructure) can be reduced big time to represent any simple web-application.
"To build a simple web-application with single program language aka javascript (UI, to server, to database)" -- I have tried to be summarize it without really revealing what I am building -- but this would do as for now.
Every good development needs variety of tool-set. In this case there is just the IDE (Eclipse Java EE IDE for Web Developers - Kepler version) and the update site of 'Node Eclipse'[1] (Nodeclipse - Installation Instructions).
It is a simple and most commonly used REST implementation on nodejs. It helps in setting up HTTP server and handle REST calls.
Nodejs works with template engine to render web-pages. There are number of such template engines and jade is one of them which works with express. Others can be swig etc...
If you come from the ant world, this is sort of build.xml, if you come from maven world, this is sort of pom.xml. While I myself is still learning what things can be specified in package.json - it is the starting point for defining nodejs module.
Refer to the attached project which contains the complete project. Due to size limit no 'node_modules' are included[3].
Contains the definition of the module we are building. Two major section of json are discussed:
This is sort of our main program (like in java). While this blog would not talk about how to write node.js module programs, there are some parts I have discussed below
The most interesting part which really helps in consuming the OpenUI5 CDN URL for building our Web Project. The rendering-algo of the Jade Template engine is based on line-breaks and indentation.
In our example we have just used the unified shell example.
A simple shell application which can be grown into full-blown application. Use modulus.io or microsoft azure which provide node js based hosting solutions.
It is always possible that we would like to work offline (say sitting in airplane). As we are using CDN, this would not work out. We talked earlier in the blog where we are registering folder as 'public'. If we place the relevant OpenUI5 SDK js in specific folder and refer the same from our home.jade file we should be able to build our application in complete offline mode. Based on the image below, just check the change made in home.jade & the project structure.
NOTE: This is only for DEVELOPMENT and shouldn't be done in PRODUCTION. Mainly because of the size of OpenUI5 (~22MB) and for pointing to the latest version.
[1] - Why Node Eclipse for development? This was the first google hit to do 'Node Eclipse' development (coding/debugging/testing). There are some things provided from Strong Loop (Open Source), but not yet evaluated.
[2] - npm stands for Node Package Manager which is used to resolved dependencies between one node-module to others. There is lot more to npm but for now it is the only part which is necessary for the scope of this blog.
[3] - For running the project, import the given project into eclipse. If you have the 'node-eclipse' installed then do the following:
I am using the HTML unordered list tags (ul and li) to build a list of text with bullets in front of them. I have tried OpenUI5 labels and text components to output the text (which is so long that it wraps to the next line) but when I do the bullets seem to lineup with the second line of text.
I experimented and just hard coded the text (normally it comes from a resource bundle) and when I do this the bullet lines up properly. Note that the bullet lines up properly when I use the formatted test view component.
Here is how it looks:
Is there anything I can do to get that text to lineup with each bullet properly?
Hi ,
Could anyone please share the link to more advanced development of SAPUI5 applications using WEB IDE.
I am able to develop the applications on eclipse using UI5 plugins but when I try to do the same using the WEB IDE , I am not able to surpass the simple "Hello World" example.
Any link to the tutorial will be highly appreciated.
Thanks,
Shiv
Hi,
In CRM MyLeads and My Opportunities, display part is working fine. We are able to get the list of Opportunities and Leads. But when I try to Edit a Lead or an Opportunity, I am not able to type in anything to the "Name " field and in Leads even when I select a date it doesn't get displayed in the date field. And the "Name" field is marked mandatory as well.
We have the below note to be applied only for SPS04 right? We have CRM EHP2 SP06. Is the problem becasue we havent applied this note??
Back-end server (SPS04) | Employee responsible set as blank |
Thanks
Vishnupriya
Dear Experts,
I have an mobile application developed mostly based on "sap.m" controls. I am trying to simulate/test the application through Chrome in iPad/iPhone simulation. There is an 'Fit' checkbox option in Chrome debugger. When i enable that checkbox, the application fits to the screen and scrolling works fine. But, when i tried to uncheck that 'Fit' checkbox, the application is not getting displayed completely and scrolling doesn't work. When i try to access the application in iPad through Safari browser, the Non 'Fit' version of the application is getting displayed.
I am not sure, if creating an JSON device model would help and how to apply that appropriately. Can someone please let me know, whether you have faced these issues and how to resolve them ?
Thanks and Regards,
Gaurav.
Hi Experts,
App is deployed in Fiori Launchpad, but none of the labels/values are populated in UI.
I have a Json files that has mock up data and Message Bundle properties that has the labels and texts.
I created a tile for the App, When i hit on it, Master Page comes with no data.
I see that it could not find the json and message bundle properties. I have imported the code from Eclipse and created a BSP Application.
Do i have to mention the path manually somewhere or why it is not detecting JSON and Message Bundle properties from the BSP Application.
Hope I am clear, Please provide your thoughts on this..
Thanks
Jay
Hi guys.
I'm new in sapui5.
I can add record to sap table with use odata and rfc functions.
My RFC function create a key adding record.
How to I get this key in sapui5?
I use code in sapui5.
var oEntry = {};
oEntry.firstname = oInputFirstname.getValue();
oEntry.lastname = oInputLastname.getValue();
oModel.create('/GetPersonsSet', oEntry, null, function(onSuccess){
alert("Success");
},function(oError){
alert("Error");});
HI experts,
is it possible to add some buttons in the table header of a SAP UI5 table.
Thanks for information.
Best regards
Christoph
Hi, all!
I can't find any solve.
I use sap.ui.table.Table control for displaying data(text) from service. Table has fixed width, 7 columns and vertical scrollbar.
Columns must automatically change the width depending on length of text after data binding(table width is fixed, horizontal scrollbar appears). Is it possible to do?
or should I use some other control?
Thanks.
I am a newbie in SAPUI5 mobiles apps.
What I actually want is, I am having a demo mobile application. Now how do I publish it so that I could access it through my android phone?
Kindly help me by mentioning the steps.
Thanks in Advance.
Hi,
I am having an oData service from SAP Gateway used in my SAPUI5 project. It was running fine in my eclipse. Now when I push this same project to HANA Cloud it throws an error for obvious reasons. I need to some how make my on-premises Odata service to be available over pubkic network, So as to make it work.
When I have got the same issue while using a generic oData service<Northwind>, I solved it by creating a destination on the SAP HANA Cloud Account.
Now what are the configuration that to be done, so that I could solve my above mentioned issue.
Hi experts,
I am trying to implement a VIZ chart (fiori style) according to the Demo Kit example (SAPUI5 Explored VizFrame), but it always results in the following error (thrown by VizFrame constructor call):
Uncaught Error: found in negative cache: 'sap/viz/ui5/controls/VizFrame.js' from /sap/ui5/1/resources/sap/viz/library-preload.json/sap/viz/ui5/controls/VizFrame.js: Error: found in negative cache: 'sap/viz/ui5/controls/common/BaseControl.js' from /sap/ui5/1/resources/sap/viz/library-preload.json/sap/viz/ui5/controls/common/BaseControl.js: Error: failed to load 'sap/viz/ui5/controls/libs/sap-viz-controls.js' from /sap/ui5/1/resources/sap/viz/ui5/controls/libs/sap-viz-controls.js: Error: Mismatched anonymous define() module: [object Object]
We are using UI5 Version 1.22.9, I added sap.viz to the included libraries in the index.html and I tried both, JS and XML views.
Anybody faced the same issues or knows a solution?
Thanks and best regards,
Fabian
Hi experts,
is it possible to define a column in a SAP UI5 table as link. I want to show text as dynamic link and when user presses the link something happens.
It would be good too that I can handle the event in the controller that I can perform something.
Thanks for information.
Best regards,
Christoph
Hi,
I have some complex problem in which I am supposed to get data from a service before my screen gets loaded.
I am using ODataModel in the application. What I want is, I want to populate data from a service and show it in another table in one of the columns while other columns of the table should have data from my static json.
I was trying to create one table and tie it with the data from the service we want but setting the table to invisible as I don't want to make use of this table. The purpose of creating this table is to have data from the service loaded and the purpose of setting it to invisible is not to show users the things of no use. But I got to know that, unless and until the table is rendered on the screen, we don't get the data from the model.
How can this be achieved? Please suggest some ideas.
Thanks,
Supriya Kale