Welcome to the nuBuilder Forums!

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

Empty lookup values

Questions related to using nuBuilder Forte.
Post Reply
gniko
Posts: 8
Joined: Mon Mar 12, 2018 7:42 am

Empty lookup values

Unread post by gniko »

I have created a form (and a table ) using fast forms with 3 text and 2 lookup values.
It works perfectly as long as the lookup values are set to a record of the tables they look into.
However I want to insert records in the table without the lookup values.
Saving the records works (The records are saved in the table, I can access them using phpMyAdmin)
However the records are not shown in the browse list so I cannot access them from the nuBuilder environment.

Any ideas how to solve this.

I am thinink of adding a dummy record in the 2 other tables and use it as default value, however I' d prefer to have actually empty values
gniko
Posts: 8
Joined: Mon Mar 12, 2018 7:42 am

Re: Empty lookup values

Unread post by gniko »

I removed the lookup columns and the SQL querry from the browse form and I can access all the records now.

I would like to be able to view all the columns so any ideas are welcome.
gniko
Posts: 8
Joined: Mon Mar 12, 2018 7:42 am

Re: Empty lookup values

Unread post by gniko »

Well found the solution I modified the autocreated SQL script using LEFT OUTER JOIN istead of JOIN on the two tables.
This returns all the lines from the main table and browse form has all records.

changed the following:

Code: Select all

SELECT
    part.*,
    device.*,
    field.*

FROM
    part
        JOIN device ON part.part_device_id = device.device_id
        JOIN field ON part.part_field_id = field.field_id
with this.

Code: Select all

SELECT
    part.*,
    device.*,
    field.*

FROM
    part
        LEFT OUTER JOIN device ON part.part_device_id = device.device_id
        LEFT OUTER JOIN field ON part.part_field_id = field.field_id
admin
Site Admin
Posts: 2814
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: Empty lookup values

Unread post by admin »

.
toms
Posts: 785
Joined: Sun Oct 14, 2018 11:25 am

Re: Empty lookup values

Unread post by toms »

gniko, does that mean it's all fixed?
gniko
Posts: 8
Joined: Mon Mar 12, 2018 7:42 am

Re: Empty lookup values

Unread post by gniko »

Yes its all fixed.
Thanks!
admin
Site Admin
Posts: 2814
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: Empty lookup values

Unread post by admin »

.
Post Reply