Error trying to clone an object
Posted: Mon Oct 19, 2020 9:33 pm
I am having a problem with cloning an object on a form. I have tried this with several objects, none clone.
1) I have an object open in the Object editor.
2) I hit the CLONE button
3) The top menu bar changes to just SAVE
4) I change the Label/ID/other information
5) I hit Save
6) It says "Record Saved" briefly, then the window loses all information in all fields and the header just says "Object >"
7) The object is not created
nuDebugLog shows:
[0] :
===USER==========
globeadmin
===PDO MESSAGE===
SQLSTATE[22007]: Invalid datetime format: 1366 Incorrect integer value: '' for column `nubuilder`.`zzzzsys_object`.`sob_input_count` at row 1
===SQL===========
INSERT INTO zzzzsys_object (zzzzsys_object_id, `sob_all_table`, `sob_all_order`, `sob_all_zzzzsys_tab_id`, `sob_all_type`, `sob_all_label`, `sob_all_id`, `sob_all_top`, `sob_all_left`, `sob_all_width`, `sob_all_height`, `sob_all_cloneable`, `sob_all_align`, `sob_all_validate`, `sob_all_access`, `sob_all_zzzzsys_form_id`, `sob_run_zzzzsys_form_id`, `sob_run_filter`, `sob_run_id`, `sob_run_method`, `sob_display_sql`, `sob_select_sql`, `sob_select_multiple`, `sob_lookup_zzzzsys_form_id`, `sob_lookup_code`, `sob_lookup_table`, `sob_lookup_description`, `sob_lookup_description_width`, `sob_lookup_javascript`, `sob_subform_table`, `sob_subform_zzzzsys_form_id`, `sob_subform_foreign_key`, `sob_subform_add`, `sob_subform_delete`, `sob_subform_type`, `sob_image_zzzzsys_file_id`, `sob_input_format`, `sob_input_count`, `sob_input_type`, `sob_input_javascript`, `sob_html_code`, `sob_html_chart_type`, `sob_html_javascript`, `sob_html_title`, `sob_html_vertical_label`, `sob_html_horizontal_label`, `sob_calc_format`, `sob_calc_formula`) VALUES ('5f8de7ca8aa54fa', 'namf', '110', '5f8be8499ceedb9', 'display', 'Largest Gift Amount', 'big_gift_amount', '4', '200', '100', '20', '1', 'left', '0', '1', '5f8bd480b34bc7d', '', '', '', '', 'SELECT big_gift_amt
FROM prmf
WHERE id_code = #RECORD_ID#', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 'D|mm-dd-yyyy', '', 'nuDate', '', '', '', '', '', '', '', '', '');
===BACK TRACE====
/Users/n9yty/Sites/nubuilder/nudata.php - line 386 (nuRunQuery)
/Users/n9yty/Sites/nubuilder/nuapi.php - line 51 (nuUpdateDatabase)
1) I have an object open in the Object editor.
2) I hit the CLONE button
3) The top menu bar changes to just SAVE
4) I change the Label/ID/other information
5) I hit Save
6) It says "Record Saved" briefly, then the window loses all information in all fields and the header just says "Object >"
7) The object is not created
nuDebugLog shows:
[0] :
===USER==========
globeadmin
===PDO MESSAGE===
SQLSTATE[22007]: Invalid datetime format: 1366 Incorrect integer value: '' for column `nubuilder`.`zzzzsys_object`.`sob_input_count` at row 1
===SQL===========
INSERT INTO zzzzsys_object (zzzzsys_object_id, `sob_all_table`, `sob_all_order`, `sob_all_zzzzsys_tab_id`, `sob_all_type`, `sob_all_label`, `sob_all_id`, `sob_all_top`, `sob_all_left`, `sob_all_width`, `sob_all_height`, `sob_all_cloneable`, `sob_all_align`, `sob_all_validate`, `sob_all_access`, `sob_all_zzzzsys_form_id`, `sob_run_zzzzsys_form_id`, `sob_run_filter`, `sob_run_id`, `sob_run_method`, `sob_display_sql`, `sob_select_sql`, `sob_select_multiple`, `sob_lookup_zzzzsys_form_id`, `sob_lookup_code`, `sob_lookup_table`, `sob_lookup_description`, `sob_lookup_description_width`, `sob_lookup_javascript`, `sob_subform_table`, `sob_subform_zzzzsys_form_id`, `sob_subform_foreign_key`, `sob_subform_add`, `sob_subform_delete`, `sob_subform_type`, `sob_image_zzzzsys_file_id`, `sob_input_format`, `sob_input_count`, `sob_input_type`, `sob_input_javascript`, `sob_html_code`, `sob_html_chart_type`, `sob_html_javascript`, `sob_html_title`, `sob_html_vertical_label`, `sob_html_horizontal_label`, `sob_calc_format`, `sob_calc_formula`) VALUES ('5f8de7ca8aa54fa', 'namf', '110', '5f8be8499ceedb9', 'display', 'Largest Gift Amount', 'big_gift_amount', '4', '200', '100', '20', '1', 'left', '0', '1', '5f8bd480b34bc7d', '', '', '', '', 'SELECT big_gift_amt
FROM prmf
WHERE id_code = #RECORD_ID#', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 'D|mm-dd-yyyy', '', 'nuDate', '', '', '', '', '', '', '', '', '');
===BACK TRACE====
/Users/n9yty/Sites/nubuilder/nudata.php - line 386 (nuRunQuery)
/Users/n9yty/Sites/nubuilder/nuapi.php - line 51 (nuUpdateDatabase)