Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Save Data from a CSV file

Anis
Explorer
1,232

Good morning ,
i'm making a application that save data from a csv file , the upload works perfectly , but when i try to save the data this errors appears and i don't know why , everything was perfectly work but i dunnow why this appears 
"TypeError: i.setStatus is not a function", can someone help me please .

4 REPLIES 4
Read only

Dan_Wroblewski
Developer Advocate
Developer Advocate
0 Likes
1,126

How are you "saving" the data? What is the full flow? Screenshots always help 😺




--------------
See all my blogs and connect with me on Twitter / LinkedIn
Read only

0 Likes
1,027

Hello Dan , there is already a blog that can help you 
check this : https://community.sap.com/t5/technology-blogs-by-sap/loading-data-from-a-csv-file-into-sap-build-app...
also for downlading an empty CSV file you can add a logic for Download button : 

Anis_0-1725263850190.png

and in the right side of this logic you can run this function to convert the headers of the CSV file into Base 64 : 
const headers = "";
const base64EncodedHeaders = btoa(headers);
console.log(base64EncodedHeaders);
NB: header is seperated by ";" like : "FirstName;LastName;Age;Role"

Anis_1-1725264084215.png

Read only

Dan_Wroblewski
Developer Advocate
Developer Advocate
0 Likes
1,005

Are you asking a question here? Is this question solved?

P.S.: I would have referred you to that blog if that is what you needed.




--------------
See all my blogs and connect with me on Twitter / LinkedIn
Read only

0 Likes
971

yes it's solved