Welcome to the nuBuilder forums!

Please register and login to view forums and other content only available to registered users.

[SOLVED] Form Wizard BUG?

Locked
Giu
Posts: 41
Joined: Sat Jan 25, 2014 11:01 am

[SOLVED] Form Wizard BUG?

Unread post by Giu »

Hi,

I'm having troubles starting with nuBuilder 3 and Form Wizard. :oops:

First, I created a first table.
Captura2.JPG
Captura2.JPG (69.66 KiB) Viewed 2151 times
Then, I opened Form Wizard, trying to import it. Form Wizard see this table, but when I try to save and create the new form I get an error about "A Table needs to be chosen"
Captura.JPG
Captura.JPG (93.54 KiB) Viewed 2151 times
I tried with Chrome too to discard IE browser incompoatibilty, but same error.
I'm doing the same as http://www.youtube.com/watch?v=BvhjdlzE ... AJK7Eetc4R

There are something I'm doing wrong?
Last edited by Giu on Fri Feb 21, 2014 5:23 pm, edited 1 time in total.
Giu
Posts: 41
Joined: Sat Jan 25, 2014 11:01 am

Re: Form Wizard BUG?

Unread post by Giu »

Solved.

Problem was I didn't selected a primary key, but error is confusing.

On zzzsys_form table, on nuformwizard record, inside sfo_custom_code_run_before_save field, aprox on line 91, there is a portion of code like this.

Code: Select all

if( $table === '' || $primary === '') {
    nuDisplayError('A table needs to be chosen');
    return;
}
I think could be more interesting to have something like:

Code: Select all

if( $table === '') {
    nuDisplayError('A table needs to be chosen.');
    return;
}

if( $primary === '') {
    nuDisplayError('Form Wizard can't detect Primary Key on selected table.');
    return;
}
admin
Site Admin
Posts: 2781
Joined: Mon Jun 15, 2009 2:23 am
nuBuilder Version: 4.5
Been thanked: 1 time

Re: [SOLVED] Form Wizard BUG?

Unread post by admin »

I agree

Steven
Locked