我有一个曾经可以使用的表格,但是今天我注意到它没有将创建的记录保存到数据库中。
我可以从应用程序的其他部分访问新创建的记录,因此它必须存储在某个位置,当我从MySQGL Workbench访问数据库时,该记录不存在,如果我重新加载该应用程序,该记录也将消失
我在“发送”按钮上运行一些代码:
widget.datasource.createItem({success: function() {
widget.parent.descendants.errorLabel.text =
"Sikeres mentés! ";
setTimeout(function(){ widget.parent.descendants.errorLabel.text =
"";},10000);
},
failure: function(error) {
widget.parent.descendants.errorLabel.text =
"Sikertelen mentés, talán már létezik ilyen cég? ";
setTimeout(function(){ widget.parent.descendants.errorLabel.text =
"";},10000);
}
});
应用程序中的其他表单也可以毫无问题地保存记录。 预先谢谢你!