Errors opening forms with IFRAME and GRID
Posted: Fri May 24, 2024 11:05 am
When opening the main form, the
errors like this:
In this case, the jur_works table is used as a source for the form of the 1st subform (Iframe) and the 1st subform (Grid) with the code:
But if you open browse-form jur_works separately and independently, the same SQL does not show any errors.In the database and nuBuilder, the 'jur_data' field is declared as Date.`jur_wid`- this is the primary key.
I can’t say that this appeared after the Ubuntu update, because... the form worked correctly, but after updating on the subform (Grid), the Select field stopped working, showing an empty field. As a result, I went into nuDebug and discovered the above errors. When organizing the Select field (with the same SQL query) on any other form, this field correctly makes the selection.
errors like this:
Code: Select all
[0] : ===PDO MESSAGE===
SQLSTATE[HY000]: General error: 1525 Incorrect DATE value: '-1'
===SQL===========
SELECT `jur_wid` FROM jur_works WHERE (`jur_data` = '-1') AND (1) ORDER BY jur_data DESC
===BACK TRACE====
/var/www/kknmkomp/core/nuform.php - line 1030 (nuRunQuery)
/var/www/kknmkomp/core/nuform.php - line 397 (nuGetSubformRecords)
/var/www/kknmkomp/core/nuapi.php - line 92 (nuGetFormObject)
Code: Select all
SELECT
jur_works.*
FROM
jur_works
WHERE
(jur_dep ='#fltr#')
ORDER BY
jur_data DESC
I can’t say that this appeared after the Ubuntu update, because... the form worked correctly, but after updating on the subform (Grid), the Select field stopped working, showing an empty field. As a result, I went into nuDebug and discovered the above errors. When organizing the Select field (with the same SQL query) on any other form, this field correctly makes the selection.