on 10-22-2018 8:14 AM
Hello Experts,
I want to create a DIV where external excel files can be dragged and dropped.
Can you please help me with the code.
Regards,
Shama
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Suriya,
Thank you!
It serves the exact purpose. Can you also let me know how to restrict multiple file upload? I have used multiple="false", still it allows multiple file upload.
Regards,
Shama
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Shama,
multiple="false"
This property allows you select only one file when you upload. Still it allows to upload multiple times.
If you want to handle even that, you have do it in onChange event handler.
onChange: function(oEvent){
if(oEvent.getSource().getItems().length){
sap.m.MessageBox.error("Only one item allowed!");
throw "Only one item allowed!";
}
else{
//on change upload code
}
}
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.