cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

Hi,

I am trying to insert data into database tables using excel file, for which I am using UI5 File Uploader, and calling Java Servlet in the backend. My requirement is to capture all the logs(which DB entries were updated, which failed, etc), and display this on UI.

My issue is I am unable to read this information, because the UploadComplete event of file uploader is getting triggered even before the file processing is complete in the backend.

Do you know if there is any other way to handle this? Any help/suggestions highly appreciated.

Thanks

0 Likes
View Entire Topic
maheshpalavalli
Active Contributor
0 Likes

Hi Sunil,

The documentation says otherwise:

uploadComplete

Event is fired as soon as the upload request is completed (either successful or unsuccessful). To see if the upload request was successful, check the 'state' parameter for a value 2xx. The uploads actual progress can be retrieved via the 'uploadProgress' Event. However this covers only the client side of the Upload process and does not give any success status from the server.

It seems that it is only for the client side upload.

If you are using the odata service, there are two events:

requestCompleted and batchRequestCompleted maybe use them and check your handler for those event gets called.

BR,

Mahesh

sunil_khemchand2
Participant
0 Likes

Hi Mahesh, I am calling the servlet from the upload button itself

maheshpalavalli
Active Contributor
0 Likes

Then if you call the servlet will it return any response function call when it is successful(for asynchronous)? If synchronous, then immediatly after that call the servlet again to fetch the db log data.

BR,

Mahesh