Page 1 of 1

Browse form joining 2 tables

Posted: Thu Mar 15, 2018 10:08 pm
by 191brian
Hi

I am new to nuBuilder and am excited about using it but am struggling with browse form with sql to join 2 tables I have tested the sql ok but the form does not display and records.

The form is to list a particular type of user joining the std user & access tables.

What am I doing wrong here?

Thanks in advance.

Brian ...

the sql is
SELECT zzzzsys_user.*, zzzzsys_access.* FROM zzzzsys_user JOIN zzzzsys_access ON zzzzsys_user.sus_zzzzsys_access_id = zzzzsys_access.zzzzsys_access_id WHERE ((zzzzsys_access.sal_code ="engineer"))
join form1.PNG
join form2.PNG
join form3.PNG

Re: Browse form joining 2 tables

Posted: Fri Mar 16, 2018 4:32 am
by admin
191brian,

If you type nuCurrentProperties().browse_sql in the console, you will see how the records are filtered in the WHERE clause.

That might let you know why you are getting the results you are getting.

Steven

Re: Browse form joining 2 tables

Posted: Tue Mar 20, 2018 9:34 pm
by 191brian
Hi Steven

Thanks for the info I found the spelling mistake in my sql using the nudebug results.

BTW how do you access the console you mentioned?

Brian ...

Re: Browse form joining 2 tables

Posted: Wed Mar 21, 2018 2:41 am
by toms
Brian,

Press F12 to bring up the Developer Tools pane and then click the Console Tab.

Re: Browse form joining 2 tables

Posted: Wed Mar 21, 2018 11:31 pm
by admin
.