Bài đăng

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

[Backend] Best practice working with HANA XS on Cloud Platform

Hình ảnh
Hi, I will share some best practice that took me hour to figure out what's solution. Perquisite: I follow the tutorial series here , so things are basically set up. 1/ Cannot add more column to table  After I completed all the tutorial series, I've got a XS service expose table data as OData service. And I can use the service to bind onto UI in SAPUI5 application. Then I come up with idea to add more data & relation so that I can do more with my application. That's when I got error: Even I add one column to my table, added data using SCV import. The 2 files are saved & activated successfully. But the data didn't returned in the Data service. When I check in the catalog of the service, it look like this (the new column "INSTOCK" does not have data): Issue with "INSTOCK" column I've thought that I cannot modify the structure of table during the database is up & running. So I tried to restart the database but it didn...

[sapui5] List binding remove application filter

Hi, I've search sapui5 API can find the function to remove all existing filter from sapui5 List Binding . Hence I need to find a workaround to reset the list binding (used in resetting search field). We have no function yet, so we need to empty the filter array by manual assignment: oListBinding.aApplicationFilters = []; oListBinding.sFilterParams = undefined; oListBinding.refresh(); We have some more method to empty an array, you can find here . p/s: Update on 02 Nov, 2017: to remove the filters, you just need to pass an empty array to the function: oListBinding.filter([]); This worked in SAPUI5 1.44 ---V---

[sapui5] Cannot get control by control Id? See this post

Hello guys, You maybe sometime frustrated when getting ID of controls of the sapui5 framework, I got the same problem too, when I was starting to work with sapui5. The root cause that I found the most is forgetting declaring ID for the fragment. Because as sapui5 guideline mentioned, unlike View, Fragment's ID  is not generated automatically by the framework. You have to do it by yourself when you initiate the fragment. If you forgot to do this, you won't be able to get the fragment (or controls inside it) using sap.ui.Core.byId() later. Remember to use this line of code when initiate fragment: sap.ui.core.Fragment ( sFragmentId ,  sId ) But if you use other function, be aware of the order: sap.ui.xmlfragment ( sId,  sFragmentId ,  , oController ) Example: this.oDialog = sap.ui.xmlfragment( "createProcessDialog","com.HQ.app.test..fragment.CreateProcessDialog", this); More details can be found here: https://sapui5.hana.ondemand.com/sdk/#doc...

How to save your code in online noting tool

Hình ảnh
Hi guys, As a developer, you may have wondered how to save your code for later reference. There's some solution out there, but I would like to share my method that seems to be effective & convenient in this CLOUD era. 1. Copy your code. 2. Save on  https://repl.it/  (create your account first) 3. Copy the link generated. 4. Paste the link in Online Onenote. Onenote will generate the panel to contain the code (retrive from rep.it) 5. Enjoy. (You know what, you can have live demo with the panel in Onenote - amazing). At the present, the function generate panel/snippet from the link is only available for Onenote only. But I'm pretty sure that they will bring it to Onenote soon. Other noting tools like Evernote, Google keep... have the same function as well. ---V---

[sapui5] You should know about neo-app.json

Hình ảnh
This file is a configuration file in sapui5 project, which should be KNOWN by every developer. On function I used (actually it take me lots of time to figure it our) is the 'path' attribute of neo-app, which is some kind of shortcut to destination: For example: This neo-app.json has defined that "/app_safety_app" is the shortcut for destination name "app_safety_app" (this one is defined in your HcP or 'destination' in local web IDE). With this definition, you can make HTTPRequest (or ajax call) to external service without worrying about violating cross-domain policy (discussion about it can be found here ). Hence, it your code, you don't need to write the full URL, just pick this short URL with the shortcut in the beginning: Cheer! ---V---

Setup customized destination for local SAP Web IDE

Follow instruction in: https://www.sap.com/documents/2015/08/484b6d95-5b7c-0010-82c7-eda71af511fa.html# i'm wondering if because of Bosch's firewall has blocked the connection of local web IDE to the external ODATA service like Northwind. Will try when I back home. ---V---

Be careful to pick the right region for your SAP HANA Cloud

Hình ảnh
I've lost the whole morning to figure out why all of my joined domain get disappeared in SAP HANA cloud platform. SAP appy  pretty well the new Fiori UX to their end user, but it is not done very well with the SAP HANA Cloud cockpit. It make me confused and don't know what is the reason for my problem. OK, here the story: I login my account to continue my working pending from yesterday, but I can't found my working folder with my team like yesterday, which should be like this: Instead, I got the default log in screen like this: At first, I think SAP HcP mis-understand with my trial account. (I have 2 account: partner account to dev app and trial account for my discovery). Hence, I tried to log in again many times. But not working. Then I delete all history & cookies of history, log in again but not work. I have to restart my computer, but nothing work... Having no clues, I read about user type of SAP HcP. Then and see this key word: Region Sudden...

How to Find and Replace Words in Multiple Files

Hình ảnh
What do you do if you have to replace a single word in dozens, or even hundreds or thousands, of text files? You keep calm and download  Notepad++  or  Replace Text . These two utilities will do the job in seconds. It’s a dilemma common among developers and programmers. Imagine you’re managing a project with hundreds or thousands of files. When a product name that appears on almost every page changes, you can hardly go through each page to manually search and change the name. No, you’re smarter than that. You fire up Google, you find this article, and you learn about a solution that only takes seconds. How to Edit Multiple Files in Bulk You can either use Notepad++ or a dedicated tool called Replace Text to  bulk-edit  your files. Notepad++ First, allow Notepad++ to find the word in all the files you need to edit. Open Notepad++ and go to  Search > Find in Files…  or press  CTRL+SHIFT+F . This opes the Find in Files menu. Under...

Beware to use comparison and logic operator (< > =) in string in SAPUI5 control’s string

Hình ảnh
Hi there, Today I got a strange issue, which is simple, but take me a lots of time to figure out why. I used control sap.m.select, and put the text into its property like below: My page crashed because of "XML parse error"... I've found out that the character "<=" in the string of additionalText property has caused the problem. But i'm not sure what is the reason. Maybe the "<=" has special meaning in sapui5 control string. I will look up for the reason and update later. In the mean time, I've modified the string into text form so that the error can be fixed: I hope you got answer if you encounter the same issue. Anyone the root reason behind this error, please let us know. Thanks & have a nice day. Victor. ---V---

Website does not change after submit code: clear CACHE first

Hình ảnh
Steps to clear:  (if the first step does not work, come to next steps in below order) - In Browser, pres CTRL + F5 to force load new data without cache. - Delete all Cache in broswer. - Delete cache in Front End server. Depend on type of server, you have different way to clear cache. It server is SAP ABAP, try below Tcode: /iwfnd/cache_cleanup Screen of   /iwfnd/cache_cleanup Pick the model of your project and the press Execute (F8) /IWBEP/CACHE_CLEANUP (to clear cache on all model) For more information, you can refer to:  https://blogs.sap.com/2010/06/14/how-to-clear-the-sap-portal-cache/ ---V---

Progressive Web App: web mà vẫn gửi được thông báo, chạy được offline, mượt như app bình thường

Hình ảnh
Progressive Web App  ( PWA ) là một dạng ứ ng dụng nền  web  đang rất nổi trong thời gian gần đây. Bạn cứ tưởng tượng nó giống một website bình thường nhưng hỗ trợ full cho các thao tác cảm ứng, có tất cả tính năng giống như bạn xài một app bình thường: thông báo, camera, GPS, sync dữ liệu nền, NFC, Bluetooth... Nói cách khác, nó không khác nhiều so với app, nhưng lại không cần cài đặt, không cần chờ download, và chiếm ít dung lượng bộ nhớ hơn. Vậy có phải ngon không? Progressive  Web App  là gì? PWA là một ý tưởng được cổ vũ và khuyến khích bởi  Google , cụ thể là nhóm phát triển  Chrome . Năm 2015, nhà thiết kế Frances Berriman và kĩ sư Chrome Alex Russell lần đầu tiên đề cập tới cụm từ "Progressive Web Apps" để mô tả việc tận dụng các tính năng mới của trình duyệt để cho phép người dùng xài các web app mà xịn như  native app . Cho anh em nào chưa biết:  web app  về cơ bản là một website nhưng được thiết kế giống như app, còn na...

Giải pháp doanh nghiệp G-suit của Google đang bị rao bán giá rẻ - nguy hiểm nên cân nhắc trước khi mua

Hình ảnh
G Suite by Google Cloud  hay còn gọi là  Google Apps  là bộ ứng dụng điện toán đám mây cung cấp bởi Google. Mặc dù bảng giá chính thức đã được Google công bố cho thị trường toàn cầu là 50 USD/User/năm và cho thị trường Việt Nam là 30 USD/User/năm chưa bao gồm các loại thuế. Bảng giá này được niêm yết trên trang web toàn cầu và cả trang web Tiếng Việt của Google. Tuy nhiên nhiều người vẫn hoang mang vì đón nhận những thông tin chào phí bằng những lời có cánh từ các cá nhân và doanh nghiệp trong nước như: G Suite với mức giá siêu rẻ, tính theo gói nhiều User, cam kết giữ quyền quản trị, tính phí chỉ 1 lần duy nhất… Điều này không khỏi gây tâm lý ngờ vực và hoang mang đối với doanh nghiệp đang tìm hiểu về giải pháp này. ​ Để làm rõ vấn đề, chúng tôi có cuộc trao đổi với ông Nguyễn Xuân Hiển, đại diện của Incomda Corporation một đơn vị có 10 năm hoạt độn...

How to modify table as you're a developer:

Hình ảnh
This is just a temporary way i found: Enter Tcode Function Builder: Enter the program name "SE16N_INTERFACE" to pretend like you're developing a progam (in this case you're developing gateway for SE16N. Now you can edit the table. Good luck! ---V---

Learn about DevsOps

Hình ảnh
Overview DevOps  (a  clipped compound  of " software  DEV elopment " and " information technology  OP eration S ") is a term used to refer to a set of practices that emphasize the collaboration and communication of both  software developers  and  information technology  (IT) professionals while automating the process of  software delivery  and infrastructure changes. In traditional,  functionally-separated organizations , there is rarely a cross-departmental integration of these functions with IT operations. But DevOps promotes a set of processes and methods for thinking about  communication  and  collaboration  – between departments of  development ,  QA (quality assurance) , and  IT operations . Relationship to agile and continuous delivery Agile and DevOps are similar, but, while  agile software development  represents a change in thinking and practice (...

Những cách thức backup Windows 10 không cần cài gì thêm, và anh em hãy nhớ làm

Hình ảnh
Bản thân  Windows 10  đã có nhiều đồ chơi để anh em  backup  và phục hồi dữ liệu. Xin giới thiệu với anh em Windows một số tool mà anh em có thể dễ dàng sử dụng để đảm bảo an toàn cho chiếc máy tính của mình và ngay cả khi tình huống xấu nhất xảy ra thì chúng ta cũng không bị mất quá nhiều dữ liệu quan trọng hay phải tốn nhiều thời gian setup lại từ đầy chiếc PC yêu dấu của mình. ​ File History -  sao lưu  file, có thể kiếm lại các phiên bản cũ File History lần đầu xuất hiện trong Windows 8 và tiếp tục là giải pháp backup chính của Windows 10. File History không backup cả chiếc máy tính của bạn, thay vào đó nó đảm bảo rằng các file cá nhân, tài liệu của chúng ta sẽ được backup thường xuyên. Bạn chỉ cần thiết lập cho File History tự sao lưu file ra một ổ cứng rồi và xong, phần còn lại Windows sẽ lo cho bạn, khỏe vô cùng. Cái hay nhất của File History đó là nó không chỉ backup file mà còn giữ lại các phiên bản trước của file, lỡ bạn có edit sai hay nghịch...