Hello I'm trying to make a browse screen for a lookup for Organizations that have BinsOut. When the relation is added to the query for the browse screen no records appear. When the same query is run in MyPHPAdmin I get the expected result set. Here's some screen shots of what I'm seeing.
Am I doing something wrong here???
Data set that is returned by the query.
Query in NuBuilder
Blank form. If I go back into the query builder and delete the joined table I'm relating to the OrgID's populate the form as expected.Welcome to the nuBuilder Forums!
Register and log in to access exclusive forums and content available only to registered users.
Register and log in to access exclusive forums and content available only to registered users.
Adding relation to browse shows no records
Adding relation to browse shows no records
You do not have the required permissions to view the files attached to this post.
-
- Posts: 132
- Joined: Sun Dec 16, 2018 6:13 pm
- Location: România
- Has thanked: 30 times
- Been thanked: 4 times
Re: Adding relation to browse shows no records
What error occurs in "nuDebug Results"?
PS
Try to edit in second table column "OrgID" in "Org_ID"
PS
Try to edit in second table column "OrgID" in "Org_ID"
nuBuilderForte .... BIG Like !!!
Re: Adding relation to browse shows no records
Ah you're on the right track here. Looks like when nuBuilder creates the query it does not preface the field names with the table names as it shows in the query builder. This means every field name in the system needs to be unique. This will make it really tough to consistently use FK's in a large system.
-
- nuBuilder Team
- Posts: 4307
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 71 times
- Been thanked: 448 times
- Contact:
Re: Adding relation to browse shows no records
Not necessarily. You can write a SELECT .. FROM .. SELECT statement.treed wrote: This means every field name in the system needs to be unique.
Code: Select all
SELECT * FROM (
SELECT
test.test_id,
test.field00,
test.field01,
test.field02
FROM
test
LEFT JOIN test2 ON test2.field00 = test.field00
) T
Re: Adding relation to browse shows no records
Thanks for the work around. I was thinking a bit about this last night and is nuBuilder coded this way to support hash cookies?
-
- nuBuilder Team
- Posts: 4307
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 71 times
- Been thanked: 448 times
- Contact:
Re: Adding relation to browse shows no records
Yes, you can use Hash Cookies in the Browse SQL.treed wrote:is nuBuilder coded this way to support hash cookies?
Or what exactly do you mean / what would you like to do?