Error with the new update version

Questions related to using nuBuilder Forte.

Error with the new update version

Postby mariri » Wed Jan 08, 2020 10:22 pm

Hi !

I've downloaded the lastest version of NuBuilder (https://sourceforge.net/projects/nubuilder/). I did some tests by making new simple forms and when I try to save a new record, I have this error message.
I don't know why :?:

Thanks in advance !
Attachments
nuDebug.PNG
nuDebug.PNG (14.99 KiB) Viewed 135 times
mariri
 
Posts: 42
Joined: Mon Sep 02, 2019 7:24 pm

Re: Error with the new update version

Postby mariri » Wed Jan 08, 2020 10:44 pm

Ok I found the solution in the post named "nuDebug errors". Sorry I didn't see that
mariri
 
Posts: 42
Joined: Mon Sep 02, 2019 7:24 pm

Re: Error with the new update version

Postby kev1n » Wed Jan 08, 2020 10:46 pm

Hi,

This issue is known (see here: viewtopic.php?f=19&t=10189).

You can either ignore the error or fix it as shown in the other post.

@Steven: The error seems to occur if a temp table is used in the Browse SQL or if $f->browse_sql == null (see here viewtopic.php?f=19&t=10189#p20128)
kev1n
 
Posts: 411
Joined: Mon Oct 15, 2018 2:13 am

Re: Error with the new update version

Postby mariri » Wed Jan 08, 2020 11:11 pm

Hi !

Thanks for ur reply Kevin. I have another error with this latest version compared to the previous.
When I try to save data in a form which contains a subform with this following config, I have this error message that should not happen.The row 5 doesn't exist because of the subform config (--> add : no).
Attachments
Save - Error.PNG
Save - Error.PNG (45.1 KiB) Viewed 124 times
Subform config.PNG
Subform config.PNG (13.92 KiB) Viewed 124 times
mariri
 
Posts: 42
Joined: Mon Sep 02, 2019 7:24 pm

Re: Error with the new update version

Postby mariri » Thu Jan 09, 2020 2:00 am

I'm so sorry but in the latest version compared to the previous, the method (added in the form's Custom Code field) $('#object_id).val(value) which sets the value attribute of the selected elements doesn't work.
I tried this following tip (it works in the previous version) :

Thanks for ur help !
Attachments
Display number in button.PNG
Display number in button.PNG (39.4 KiB) Viewed 117 times
mariri
 
Posts: 42
Joined: Mon Sep 02, 2019 7:24 pm

Re: Error with the new update version

Postby kev1n » Thu Jan 09, 2020 4:41 am

mariri wrote:I'm so sorry but in the latest version compared to the previous, the method (added in the form's Custom Code field) $('#object_id).val(value) which sets the value attribute of the selected elements doesn't work.
I tried this following tip (it works in the previous version) :

Thanks for ur help !


This still works for me. Does the display object show the number that is returned by the SQL?


PS: Please make sure to only ask one question per topic. That way you don't discourage people that only know the answer to one of your questions from helping you. And it allows other people with a similar problem to find the answer more easily.
kev1n
 
Posts: 411
Joined: Mon Oct 15, 2018 2:13 am

Re: Error with the new update version

Postby kev1n » Thu Jan 09, 2020 7:01 am

mariri wrote:When I try to save data in a form which contains a subform with this following config, I have this error message that should not happen.The row 5 doesn't exist because of the subform config (--> add : no).


I can reproduce that. It's apparently a bug...


@Steven: The function nuValidateSubforms() needs fixing so that the error "cannot be left blank" will not be displayed if addable & deleteable are set to true.
kev1n
 
Posts: 411
Joined: Mon Oct 15, 2018 2:13 am

Re: Error with the new update version

Postby mariri » Thu Jan 09, 2020 6:14 pm

kev1n wrote:
mariri wrote:I'm so sorry but in the latest version compared to the previous, the method (added in the form's Custom Code field) $('#object_id).val(value) which sets the value attribute of the selected elements doesn't work.
I tried this following tip (it works in the previous version) :

Thanks for ur help !


This still works for me. Does the display object show the number that is returned by the SQL?


PS: Please make sure to only ask one question per topic. That way you don't discourage people that only know the answer to one of your questions from helping you. And it allows other people with a similar problem to find the answer more easily.


Ok sorry about that...

Yes, the display object shows the number that is returned by the SQL. I didn't change anything between the two versions
Attachments
Previous version - Results.PNG
Previous version - Results.PNG (8.63 KiB) Viewed 100 times
Display object view.PNG
Display object view.PNG (5.92 KiB) Viewed 100 times
mariri
 
Posts: 42
Joined: Mon Sep 02, 2019 7:24 pm

Re: Error with the new update version

Postby kev1n » Fri Jan 10, 2020 3:45 am

mariri wrote:Yes, the display object shows the number that is returned by the SQL. I didn't change anything between the two versions


In the current version, you need to set a button's text with html(..) instead of val(..)

Code: Select all
if (nuFormType() == 'edit') {
    $('#sample_test_button').html($('#sample_test_button').html() + ' (' + $('#sample_display').val() + ')');
}
kev1n
 
Posts: 411
Joined: Mon Oct 15, 2018 2:13 am

Re: Error with the new update version

Postby mariri » Fri Jan 10, 2020 5:16 pm

Ok it works ! Thanks so much :mrgreen:
mariri
 
Posts: 42
Joined: Mon Sep 02, 2019 7:24 pm

Next

Return to General