on 01-30-2023 6:35 PM
Hi All,
I have used uplodSet to upload attachments in my custom UI5 app. When I click remove icon I am calling my custom OData to delete file from tables.
But the problem is frame work calls a standard confirmation popup which is not in sync with my OData call, I tried few different ways but none gave me a luck, my code should call on after users confirmation from popup.
Any suggestions much helpful.
Thanks
Hi Rajesh,
I had similar problem and my solution was following:
There is removePressed Event in UploadSetItem. I defined my own function onRemovePressed to be called on removePressed event and the first thing in the function I call oEvent.preventDefault();
The popup is prevented from displaying. If you need some confirmation popup, you could write your own in the same function.
onRemovePressed: function(oEvent) {
oEvent.preventDefault();
// your code here
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes done the same earlier, but it seems UplodSet is like a half baked product from SAP...things not working as it supposed.
Thanks
Rajesh
User | Count |
---|---|
72 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.