Welcome to the nuBuilder Forums!

Join our community by registering and logging in.
As a member, you'll get access to exclusive forums, resources, and content available only to registered users.

[SOLVED] Form Wizard BUG?

Locked
Giu
Posts: 87
Joined: Sat Jan 25, 2014 11:01 am
Has thanked: 9 times

[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
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?
You do not have the required permissions to view the files attached to this post.
Last edited by Giu on Fri Feb 21, 2014 5:23 pm, edited 1 time in total.
Giu
Posts: 87
Joined: Sat Jan 25, 2014 11:01 am
Has thanked: 9 times

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: 2824
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 29 times

Re: [SOLVED] Form Wizard BUG?

Unread post by admin »

I agree

Steven
Locked