Page 1 of 1
Report doesnt see fields from nuSQL(after JOIN)
Posted: Mon May 23, 2022 12:43 pm
by Ricu
Hi,
My report cant see the fields when I try to add them from nuSQL.
I think its a problem with the JOIN, because if i try to take the data from just one table it works fine.
When I JOIN other tables, the report becomes empty.
I saw other users had this problem, but I couldnt find a solution for me.
Thanks!
Re: Report doesnt see fields from nuSQL(after JOIN)
Posted: Mon May 23, 2022 12:54 pm
by kev1n
Hi,
You might get around this by creating a temporary table:
https://wiki.nubuilder.cloud/index.php/Reports#Table
Re: Report doesnt see fields from nuSQL(after JOIN)
Posted: Mon May 23, 2022 12:56 pm
by Ricu
with a procedure?
(so is a problem with nubuilder... in older version it worked perfectly )
Re: Report doesnt see fields from nuSQL(after JOIN)
Posted: Mon May 23, 2022 1:27 pm
by Ricu
OK, i tried with a procedure, i copied the code from sql builder from my form where it works.
Same thing. The report cant see no fields

Can u help me?
Re: Report doesnt see fields from nuSQL(after JOIN)
Posted: Mon May 23, 2022 1:29 pm
by kev1n
Yes, with a procedure.
My report cant see the fields when I try to add them from nuSQL.
Can you provide more details? Where do you not see the fields?
Re: Report doesnt see fields from nuSQL(after JOIN)
Posted: Mon May 23, 2022 1:41 pm
by Ricu
in the report designer, when i try to add new fields.
to be more clear, if my code is:
SELECT * my_table
it works perfect
but when i added the JOINs it doesnt work.
Re: Report doesnt see fields from nuSQL(after JOIN)
Posted: Mon May 23, 2022 1:49 pm
by kev1n
I created a simple SQL with a JOIN:
sql.png
and I'm still able to select the fields. Or do you mean something else?
designer.png
Re: Report doesnt see fields from nuSQL(after JOIN)
Posted: Mon May 23, 2022 2:17 pm
by Ricu
This is what i mean.
But i found the problem... it seems u shouldnt have 2 columns with the same name in different tables... i modified one of them and now it works fine.
Thanks!
Re: Report doesnt see fields from nuSQL(after JOIN)
Posted: Mon May 23, 2022 5:20 pm
by kev1n
This also applies to the Browse SQL. I usually do a SELECT * FROM (....) as a workaround.