Bài đăng

Hiển thị các bài đăng có nhãn ui5

[saphcp] [iot] Create IoT applications with SAP Cloud platform & Tessel kit - Common Issue & Solution

Hình ảnh
Hi, You can follow the full tutorial here: https://www.sap.com/developer/how-tos/2016/09/iot-tessel.html However, you may get some issue during following the tutorial (as I did), then come to this post to find the answer: Cannot use the Ambient module: attempt update but running forever Reason : Still not sure why this happening. But based on Tessel GitHub page, the reason may come from the old firmware of the Tessel board & the ambient module. Solution: this is a workaround for now. Instead of connecting the Ambient module to Port A of Tessel board. Connect it to PORT B of the board. Remember to change the JS code in the ambient.js also. The Tessel board & module should be set up like this 1. The 'iotmms' application has status "Starting" forever Reason: The application needs to bind with one database in Hana cloud. But it seems that the tutorial did not mention clearly about this prerequisite. Solution: Add a schema name "my...

[cloud-platform] Deploy your first application to SAP Hana Cloud platform - Cloud Foundry envionment

Hình ảnh
Hi, First, you should go through the official Help document from SAP: (1)  https://help.sap.com/viewer/65de2977205c403bbc107264b8eccf4b/Cloud/en-US/e3d82674bd68448eb85198619aa99b6d.html#loioe3d82674bd68448eb85198619aa99b6d When I tried following this tutorial on 1 Jan 2018, it has updated the new UI in Cloud Foundry cockpit, so I wrote this post. There's no binding service that the help document (1) above mentioned. Instead, you need to navigate to Service, choose the  PostgreSQL service . The cockpit will route you to the page to manage PostgreSQL. Once there, navigate to Instance (the item on the left toolbar). The UI that I tried: Create New Instance , you be guided through some steps to create a new database instance. When finished, the wizard will ask you if you want to connect the instance to an application. Connect the instance to the demo application (hello-nodejs) that you have done in the sap document help (1). After finishing creating the data...

[WED-IDE] SAP Web IDE can't start up after using newer version with the same user

Hình ảnh
Hi, This took me the whole afternoon to figure out. Problem: Before the error, i'm using local SAP Web IDE version 1.45 with user ABC. After trying with new local sap Web IDE version (1.53.1), I create the same user ABC with the same password & email (thanks to Chrome's autofill function). I logged in and got this error: Unhandled Error: failure during creation of required plugins -> ... I thought that the version 1.53.1 would have some problem. But it's not the reason. I tried with the older version on my computer, but the error persisted. I also tried to restart: Orion server, Chrome, my computer. But nothing worked. I took me the whole afternoon to research using google but no solution found. The reason came out when I tried with Firefox, it worked. Reason: So the reason I think come from the Chrome's cookings & password save mechanism. I'm not sure what is the exact reason, but I think because of the same user & password...

[sapui5] Always remember to pass controller object when initiate fragment

Hình ảnh
Hi, I've got painful days searching to get this error. Here's the problem: Problem I can not get any event in above table. When I press the button, it does not trigger the function in the controller. I don't know why... until today. UI design Reason The problem comes from my initiation of the fragment to be used as table items. Each fragment to have a controller, but my code make the fragment get the wrong controller, Instead of getting controller of that view, they misunderstood with the window object, because I initiate the fragment where the context of this is the window object: The code in the browser console It's good to init your controller's properties in the top to provide an overview of global properties. But be aware of this keyword, which is very dynamic in Javascript. Solution If you init fragment to use in the view, init it in the event onInit() of view is the best, which the controller already loaded into this  key word: ...