I have a problem with the import.
First try, it worked.
But in the "mycsv_complete sub" results and fileObj are undefined.
Second try i have this error...
app1741607891566.js:5243 Uncaught TypeError: Cannot add property 7, object is not extensible
at Array.push (<anonymous>)
at banano_bestellsystem_pgartikel.mycsv_step (app1741607891566.js:5243:23)
at Worker._stepcb [as userStep] (sithasodaisy.js:118114:133)
at Worker._ (papaparse.min.js:7:17573)
'use fetch to get the file contents
Dim csvData As String = banano.Await(banano.GetFileAsText("./assets/data.csv", Null, "utf8"))
'parse the file contents and retrieve items on complete
SDUIShared.ImportCSV(Me, "mycsv", csvData, "", true, true, "ISO-8859-1")
'will fire in each iteration
Sub mycsv_step(results As Map, parserObj As BANanoObject)
End Sub
'will fire when completed
Sub mycsv_complete(results As Map, fileObj As BANAnoObject)
Dim data As list = results.get("data")
Dim errors As List = results.get("errors")
Dim meta As Map = results.get("meta")
Dim fields As List = meta.get("fields")
End Sub