<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: Update Database tables through Java servlet using UI5 File Uploader in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/update-database-tables-through-java-servlet-using-ui5-file-uploader/qaa-p/774817#M229522</link>
    <description>&lt;P&gt;Hi Sunil,&lt;/P&gt;&lt;P&gt;If i have understood properly, you are sending the excel file to the back-end, reading the data from the excel file in back-end and updating the database based on the excel data.&lt;/P&gt;&lt;P&gt;Upload collection is used for just sending the documents to the back-end and it will not wait for the system to process the file to send the response.&lt;/P&gt;&lt;P&gt;In order to achieve your requirement, you should read the data from the excel file on the client side and send the data to the back-end to get &amp;amp; display required response.&lt;/P&gt;&lt;P&gt;Other way round could be to store the response in a temporary table and make a separate call from the UI once the upload collection returns successfully to fetch the output and display. However second option might lead to issues if you back-end takes considerable time to update and populate the temporary table.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vaibhav Maheshwari&lt;/P&gt;</description>
    <pubDate>Wed, 09 Jan 2019 09:16:39 GMT</pubDate>
    <dc:creator>mvaibhav</dc:creator>
    <dc:date>2019-01-09T09:16:39Z</dc:date>
    <item>
      <title>Update Database tables through Java servlet using UI5 File Uploader</title>
      <link>https://community.sap.com/t5/technology-q-a/update-database-tables-through-java-servlet-using-ui5-file-uploader/qaq-p/774814</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;
  &lt;P&gt; 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.&lt;/P&gt;
  &lt;P&gt;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. &lt;/P&gt;
  &lt;P&gt; Do you know if there is any other way to handle this? Any help/suggestions highly appreciated.&lt;/P&gt;
  &lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jan 2019 04:56:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/update-database-tables-through-java-servlet-using-ui5-file-uploader/qaq-p/774814</guid>
      <dc:creator>sunil_khemchand2</dc:creator>
      <dc:date>2019-01-09T04:56:25Z</dc:date>
    </item>
    <item>
      <title>Re: Update Database tables through Java servlet using UI5 File Uploader</title>
      <link>https://community.sap.com/t5/technology-q-a/update-database-tables-through-java-servlet-using-ui5-file-uploader/qaa-p/774815#M229520</link>
      <description>&lt;P&gt;Hi Sunil,&lt;/P&gt;&lt;P&gt;The documentation says otherwise:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;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.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;It seems that it is only for the client side upload.&lt;/P&gt;&lt;P&gt;If you are using the odata service, there are two events:&lt;/P&gt;&lt;P&gt;requestCompleted and batchRequestCompleted  maybe use them and check your handler for those event gets called.&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Mahesh&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jan 2019 05:14:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/update-database-tables-through-java-servlet-using-ui5-file-uploader/qaa-p/774815#M229520</guid>
      <dc:creator>maheshpalavalli</dc:creator>
      <dc:date>2019-01-09T05:14:47Z</dc:date>
    </item>
    <item>
      <title>Re: Update Database tables through Java servlet using UI5 File Uploader</title>
      <link>https://community.sap.com/t5/technology-q-a/update-database-tables-through-java-servlet-using-ui5-file-uploader/qaa-p/774816#M229521</link>
      <description>&lt;P&gt;Hi Mahesh,&lt;/P&gt;&lt;P&gt;  I  am uisng a Java Servlet, not Odata service.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sunil&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jan 2019 05:34:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/update-database-tables-through-java-servlet-using-ui5-file-uploader/qaa-p/774816#M229521</guid>
      <dc:creator>sunil_khemchand2</dc:creator>
      <dc:date>2019-01-09T05:34:34Z</dc:date>
    </item>
    <item>
      <title>Re: Update Database tables through Java servlet using UI5 File Uploader</title>
      <link>https://community.sap.com/t5/technology-q-a/update-database-tables-through-java-servlet-using-ui5-file-uploader/qaa-p/774817#M229522</link>
      <description>&lt;P&gt;Hi Sunil,&lt;/P&gt;&lt;P&gt;If i have understood properly, you are sending the excel file to the back-end, reading the data from the excel file in back-end and updating the database based on the excel data.&lt;/P&gt;&lt;P&gt;Upload collection is used for just sending the documents to the back-end and it will not wait for the system to process the file to send the response.&lt;/P&gt;&lt;P&gt;In order to achieve your requirement, you should read the data from the excel file on the client side and send the data to the back-end to get &amp;amp; display required response.&lt;/P&gt;&lt;P&gt;Other way round could be to store the response in a temporary table and make a separate call from the UI once the upload collection returns successfully to fetch the output and display. However second option might lead to issues if you back-end takes considerable time to update and populate the temporary table.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vaibhav Maheshwari&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jan 2019 09:16:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/update-database-tables-through-java-servlet-using-ui5-file-uploader/qaa-p/774817#M229522</guid>
      <dc:creator>mvaibhav</dc:creator>
      <dc:date>2019-01-09T09:16:39Z</dc:date>
    </item>
    <item>
      <title>Re: Update Database tables through Java servlet using UI5 File Uploader</title>
      <link>https://community.sap.com/t5/technology-q-a/update-database-tables-through-java-servlet-using-ui5-file-uploader/qaa-p/774818#M229523</link>
      <description>&lt;P&gt;Then are you calling the java servlet manually to update the excel file to db?&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jan 2019 09:23:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/update-database-tables-through-java-servlet-using-ui5-file-uploader/qaa-p/774818#M229523</guid>
      <dc:creator>maheshpalavalli</dc:creator>
      <dc:date>2019-01-09T09:23:17Z</dc:date>
    </item>
    <item>
      <title>Re: Update Database tables through Java servlet using UI5 File Uploader</title>
      <link>https://community.sap.com/t5/technology-q-a/update-database-tables-through-java-servlet-using-ui5-file-uploader/qaa-p/774819#M229524</link>
      <description>&lt;P&gt;Hi Vaibhav,&lt;/P&gt;&lt;P&gt;  Thanks for your response.&lt;/P&gt;&lt;P&gt;  Yes, your understanding is correct. I am sending the excel to back-end for further processing. I was also thinking about the issue with temporary file, but don't see any other option. Will give that a try.&lt;/P&gt;&lt;P&gt; Thanks and Best Regards,&lt;/P&gt;&lt;P&gt; Sunil&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jan 2019 20:46:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/update-database-tables-through-java-servlet-using-ui5-file-uploader/qaa-p/774819#M229524</guid>
      <dc:creator>sunil_khemchand2</dc:creator>
      <dc:date>2019-01-09T20:46:23Z</dc:date>
    </item>
    <item>
      <title>Re: Update Database tables through Java servlet using UI5 File Uploader</title>
      <link>https://community.sap.com/t5/technology-q-a/update-database-tables-through-java-servlet-using-ui5-file-uploader/qaa-p/774820#M229525</link>
      <description>&lt;P&gt;Hi Mahesh, I am calling the servlet from the upload button itself &lt;/P&gt;</description>
      <pubDate>Wed, 09 Jan 2019 20:52:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/update-database-tables-through-java-servlet-using-ui5-file-uploader/qaa-p/774820#M229525</guid>
      <dc:creator>sunil_khemchand2</dc:creator>
      <dc:date>2019-01-09T20:52:06Z</dc:date>
    </item>
    <item>
      <title>Re: Update Database tables through Java servlet using UI5 File Uploader</title>
      <link>https://community.sap.com/t5/technology-q-a/update-database-tables-through-java-servlet-using-ui5-file-uploader/qaa-p/774821#M229526</link>
      <description>&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Mahesh&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jan 2019 07:49:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/update-database-tables-through-java-servlet-using-ui5-file-uploader/qaa-p/774821#M229526</guid>
      <dc:creator>maheshpalavalli</dc:creator>
      <dc:date>2019-01-10T07:49:03Z</dc:date>
    </item>
  </channel>
</rss>

