Welcome to the nuBuilder Forums!

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

Subform object blocking the loading of a form if empty

Questions related to using nuBuilder Forte.
Locked
marcvander
Posts: 101
Joined: Mon Mar 26, 2018 5:57 pm

Subform object blocking the loading of a form if empty

Unread post by marcvander »

Hey,

I have employees and companies. I have a form to browse and edit companies information. In this edit form, I added a subform to list all the employees working in this particular company. When the subform returns one or more employees, the form loads without issue. But when the subform is empty (meaning no employee work in this company), the form doesn't load at all (it doesn't show the other objects on it).

When the subform returns one or more employees, all good:
Capture d’écran 2018-05-07 à 19.43.54.png
When the subform has no matching row (no employee working in this company), nothing is displayed (not even the other objects which should appear):
Capture d’écran 2018-05-07 à 19.44.05.png
How can my form load properly even when a subform returns no row ?

Thanks
You do not have the required permissions to view the files attached to this post.
Config:
nuBuilder v4 on a dedicated LAMP server:
-Ubuntu 14.04.5 LTS
-Apache 2.4.7
-MySQL 14.14 Distrib 5.7.22
-PHP 5.5.9-1ubuntu4.23
admin
Site Admin
Posts: 2814
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: Subform object blocking the loading of a form if empty

Unread post by admin »

marcvander,

I have fixed that now.

You can grab the latest from Github and run Update.

Please let me know if it now works for you.

Steven
marcvander
Posts: 101
Joined: Mon Mar 26, 2018 5:57 pm

Re: Subform object blocking the loading of a form if empty

Unread post by marcvander »

Hey,

thanks a lot :)

So I download the latest files from GitHub, and replace them on my web server with the old ones ?

And then I run Update on the dashboard to update the mysql database ?
Config:
nuBuilder v4 on a dedicated LAMP server:
-Ubuntu 14.04.5 LTS
-Apache 2.4.7
-MySQL 14.14 Distrib 5.7.22
-PHP 5.5.9-1ubuntu4.23
toms
Posts: 785
Joined: Sun Oct 14, 2018 11:25 am

Re: Subform object blocking the loading of a form if empty

Unread post by toms »

admin
Site Admin
Posts: 2814
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: Subform object blocking the loading of a form if empty

Unread post by admin »

.
marcvander
Posts: 101
Joined: Mon Mar 26, 2018 5:57 pm

Re: Subform object blocking the loading of a form if empty

Unread post by marcvander »

Just did it, and it all works fine. The bug is fixed! Thanks for this reactivity!
Config:
nuBuilder v4 on a dedicated LAMP server:
-Ubuntu 14.04.5 LTS
-Apache 2.4.7
-MySQL 14.14 Distrib 5.7.22
-PHP 5.5.9-1ubuntu4.23
admin
Site Admin
Posts: 2814
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: Subform object blocking the loading of a form if empty

Unread post by admin »

.
Locked