Bài đăng

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

[sapui5] [list] [fragment] Fragment/Dialog binding not working

Hình ảnh
Possible reason: You haven't set model to that dialog/fragment. This is because of the ui5 framework concept: A new fragment will have its own model. If you want that fragment has the same model as the view. Please use the below command line: this.getView().addDependent(this.oPictureDialog); ---V---

[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] aggregation binding - Use Control Visible instead removeItem or destroyItem

Hình ảnh
Hi, You may be working with binding items in table or list, we call it aggregation binding in common. You may encounter some case where you need to hide some item in the list. If it's the case, remember to look at my practice: User item's visibility instead of remove or destroy that item in the list. Because  remove  or  destroy will remove the item from the HTML document, but still leave the Id of the HTML object there. If you make some time to the table that changes the items, the table rebind and you will get id duplication error . On the other hands, if you just hide the item by using the visible property of ListBaseItem, the control is still there (only hidden). Which leads to no id error. ---V---

[sapui5] [git] Avoid using "Amend Change" in git pane of sap Web IDE

Hình ảnh
Hi, SAP Web IDE provide a "seem to be useful" function in the git pane: " Amend changes" . This function allows you to amend you current change to the latest  commit . It's quite useful if you make additional small changes after your last commit, which is in the same scope of the commit. However, that lead to a fatal error if you're working with a remote git repository (like Bitbucket, Github). It would create a conflict betweens commit, which will cause you lots of pain points. For example, you have 3 commits: A, B, C A: already pushed to the remote repository. B: you've just committed. (but not pushed yet) C: You've made small changes and " ammend changes"  to commit B, and changed the commit description. Then, you want to push all the changes (B & C) to the remote. Here's you will get the conflict. Because the commit B itself contains 2 commits with different description, the remote server cannot distinguis...

[sapui5] How to work around “multiple merge bases” error in EGit Eclipse plugin?

Hình ảnh
Hi, When I pull remote repository to my local branch in SAP Web Ide, I’ve got this problem with GIT: 3 : 13 : 49 PM ( git ) Pull request failed No merge base could be determined . Reason = CONFLICTS_DURING_MERGE_BASE_CALCULATION . "More than 200 merge bases for: a ac84124fd128aa579db65693b36be11b5d9a3575 b 1 b9e27eb78bed7f9ec40517fee32dfb0a5504ef7 found : count 2 " I’ve searched but found no solution, the only solution is mentioned  here. They suggest to update the git version to higher version, but it seems unable to do so in sap web IDE. The Web IDE also does not support git command line so there’s no solution to get over this bug. (my remote repository is bitbucket) Solution It's pretty weird, I'm not really sure. But to get over it, you can try: - cherry-pick from your latest commit in your local branch. - fix the conflict. - Commit to a new one (or append your latest commit). - Try to pull again (it should be successfully right a...