首页 > SAP > SAPUI5 > How to upload CSV file data in SAPUI5 and SAP Fiori Applications
2019
08-27

How to upload CSV file data in SAPUI5 and SAP Fiori Applications

Hello everyone, in this blog we will show you how to upload CSV file data in SAPUI5 and SAP Fiori Applications. Lets get started.

How to upload CSV file data in SAPUI5 and SAP Fiori Applications - 第1张  | 优通SAP

1.Prerequisites

You should have basic understanding on building SAPUI5 applications. To get all beginner tutorials please check here.

2.UI Controls used

File Uploader from sap.ui.unified library
Table and Button from sap.m library

3.Step-by-Step Procedure

1. Create a SAPUI5 application in Eclipse IDE with one view and a controller. You project structure will look like below.

2. Go to index.html and copy the below code.

3. Go to FileUpload.view.xml file and copy the below code to build the view.

4. Lets see what we have done in the previous step.We created the view to show File Uploader, Button and Table UI control.

5. Go to FileUpload.controller.js file and copy the below code.

6. The above code inside onUpload event handler will read the data from the CSV file and bind the data to the Table.

You have successfully created a SAPUI5 application to load the data from CSV file. Please stay tuned to us for more SAPUI5 Tutorials.

最后编辑:
作者:yangsen
本站为个人博客网站,全由我个人维护,我从事SAP开发13年,其它ERP开发7年,基本都是零售行业。本站记录工作学习的过程, 有SAP相关询问专、兼职工作可随时联系我。 有网站相关的问题可直接在文章下方留言,或者联系我。 邮件:yan252@163.com给我。 QQ:415402519