Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

Uncaught ReferenceError: nuCSVfiles is not defined

Questions related to using nuBuilder Forte.
Post Reply
ricklincs
Posts: 107
Joined: Mon Aug 01, 2011 5:39 pm
Has thanked: 33 times

Uncaught ReferenceError: nuCSVfiles is not defined

Unread post 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
ricklincs
Posts: 107
Joined: Mon Aug 01, 2011 5:39 pm
Has thanked: 33 times

Re: Uncaught ReferenceError: nuCSVfiles is not defined

Unread post 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
steven
Posts: 369
Joined: Mon Jun 15, 2009 10:03 am
Has thanked: 52 times
Been thanked: 52 times

Re: Uncaught ReferenceError: nuCSVfiles is not defined

Unread post by steven »

Hi ricklincs,

Good catch!

I have added your changes to GitHub.

Thanks


Steven
A short post is a good post.
ricklincs
Posts: 107
Joined: Mon Aug 01, 2011 5:39 pm
Has thanked: 33 times

Re: Uncaught ReferenceError: nuCSVfiles is not defined

Unread post 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"
steven
Posts: 369
Joined: Mon Jun 15, 2009 10:03 am
Has thanked: 52 times
Been thanked: 52 times

Re: Uncaught ReferenceError: nuCSVfiles is not defined

Unread post 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
You do not have the required permissions to view the files attached to this post.
A short post is a good post.
kev1n
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

Unread post by kev1n »

Fix is on Github. Thanks for the patch Steven!
Post Reply