Page 1 of 1
Uncaught ReferenceError: nuCSVfiles is not defined
Posted: Tue Oct 01, 2024 1:53 pm
by ricklincs
I have a new install of nuBuilder, I have gone to csv transfer and tried to import a csv file into a table.
I get the above javascript error. I have a temp directory with csv files in. Thanks
Re: Uncaught ReferenceError: nuCSVfiles is not defined
Posted: Wed Oct 02, 2024 5:48 pm
by ricklincs
Also on export I got a Javascript error The Procedure does not exist... (CSVTRANSFER). I have solved this by changing the custom code for form nucsvtransfer
From "if(nuFORM.getJustTables().includes(csvFrom)){
nuRunPHP("CSVTRANSFER")"
To "if(nuFORM.getJustTables().includes(csvFrom)){
nuRunPHP("NUCSVTRANSFER")"
Thanks
Re: Uncaught ReferenceError: nuCSVfiles is not defined
Posted: Wed Oct 02, 2024 8:14 pm
by steven
Hi ricklincs,
Good catch!
I have added your changes to GitHub.
Thanks
Steven
Re: Uncaught ReferenceError: nuCSVfiles is not defined
Posted: Fri Oct 04, 2024 10:50 am
by ricklincs
Hi Steven
The export side of CSVTRANSFER is now working well, however didn't notice it before but the import side of CSVTRANSFER comes up with
"Javascript Error Uncaught ReferenceError: nuCSVFiles is not defined"
Re: Uncaught ReferenceError: nuCSVfiles is not defined
Posted: Fri Oct 04, 2024 8:45 pm
by steven
Hi ricklincs,
Here's a quick fix but I'll put the fix on GitHub too...
You'll need to change one small bit of the Javascript code for Form
nuhome
Add
-1
csv.png
Adding this -1 will fix the error
"Javascript Error Uncaught ReferenceError: nuCSVFiles is not defined".
Because opening
nucsvtransfer with a record parameter. will mean
Before Edit will run and create a list of files on the server.
Steven
Re: Uncaught ReferenceError: nuCSVfiles is not defined
Posted: Wed Oct 23, 2024 5:40 am
by kev1n
Fix is on Github. Thanks for the patch Steven!