I used the SQL Builder and build a relationship between two tables.
Table A and table B
The table B is a subform for table A.
Then i linked the Custom_field_id from table B to ID of Table A.
It gave me this SQL
Code: Select all
SELECT
Table_A.*,
Table_B.*
FROM
Table_A
JOIN Table_B ON Table_B.Custom_field_id = Table_A.id
Select Table data the SQL i just build (it's a nuSQL), all i have in the Available Fields is KEEP EXACT HEIGHT
And on the debugger i get this error code:
Code: Select all
[0] :
===USER==========
globeadmin
===PDO MESSAGE===
SQLSTATE[42S02]: Base table or view not found: 1051 Unknown table 'appsgesa_nugesa.___nu15b5b28b33b413___'
===SQL===========
DROP TABLE ___nu15b5b28b33b413___
===BACK TRACE====
/home/appsgesa/public_html/nucommon.php - line 1001 (nuRunQuery)
/home/appsgesa/public_html/nucommon.php(1267) : eval()'d code - line 2 (nuTTList)
/home/appsgesa/public_html/nucommon.php - line 1267 (eval)
/home/appsgesa/public_html/nuform.php - line 475 (nuEval)
/home/appsgesa/public_html/nuform.php - line 499 (nuGetOtherLookupValues)
/home/appsgesa/public_html/nuapi.php - line 43 (nuGetAllLookupValues)
I took the statement
Code: Select all
SELECT
Table_A.*,
Table_B.*
FROM
Table_A
JOIN Table_B ON Table_B.Custom_field_id = Table_A.id
The result was ok.
I can't understand why the behavior.
please help