SAP Builders Discussions
Join the discussion -- ask questions and discuss how you and fellow SAP Builders are using SAP Build, SAP Build Apps, SAP Build Process Automation, and SAP Build Work Zone.
cancel
Showing results for 
Search instead for 
Did you mean: 

Save Data from a CSV file

Anis
Explorer
399

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

Dan_Wroblewski
Developer Advocate
Developer Advocate
0 Kudos
293

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

0 Kudos
195

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

Dan_Wroblewski
Developer Advocate
Developer Advocate
0 Kudos
173

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

0 Kudos
139

yes it's solved