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
Welcome to the nuBuilder Forums!
Register and log in to access exclusive forums and content available only to registered users.
Register and log in to access exclusive forums and content available only to registered users.
Uncaught ReferenceError: nuCSVfiles is not defined
Re: Uncaught ReferenceError: nuCSVfiles is not defined
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
From "if(nuFORM.getJustTables().includes(csvFrom)){
nuRunPHP("CSVTRANSFER")"
To "if(nuFORM.getJustTables().includes(csvFrom)){
nuRunPHP("NUCSVTRANSFER")"
Thanks
Re: Uncaught ReferenceError: nuCSVfiles is not defined
Hi ricklincs,
Good catch!
I have added your changes to GitHub.
Thanks
Steven
Good catch!
I have added your changes to GitHub.
Thanks
Steven
A short post is a good post.
Re: Uncaught ReferenceError: nuCSVfiles is not defined
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"
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
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
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
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
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
You do not have the required permissions to view the files attached to this post.
A short post is a good post.
-
- nuBuilder Team
- Posts: 4292
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 71 times
- Been thanked: 444 times
- Contact:
Re: Uncaught ReferenceError: nuCSVfiles is not defined
Fix is on Github. Thanks for the patch Steven!