Page 1 of 1

[SOLVED] Form Wizard BUG?

Posted: Fri Feb 21, 2014 2:31 pm
by Giu
Hi,

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

First, I created a first table.
Captura2.JPG
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
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?

Re: Form Wizard BUG?

Posted: Fri Feb 21, 2014 5:23 pm
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;
}

Re: [SOLVED] Form Wizard BUG?

Posted: Fri Feb 21, 2014 11:33 pm
by admin
I agree

Steven