1. Kevin
  2. Valentina Studio
  3. 日, 6月 21 2020, 11:41 PM
  4.  メールで購読
I built a form to add a record to a table: Enter data, click on button, record is added to table, form closes. That works.

Is there a way to keep the form open to add additional records?

I removed this.accept(); and overwrote the existing data with new data, but got an error when I clicked on the button.

A kind of addRecord, clearFields or refreshForm.

I looked in Templates and didn't see anything.

Thanks,

Kevin
コメント
There are no comments made yet.
Sergey Pashkov 承諾済みの回答
Hello Kevin,

No, there is no way to do it. I think we'll add it as it can be useful
コメント
There are no comments made yet.
Kevin 承諾済みの回答
Thank you!
コメント
There are no comments made yet.
Sergey Pashkov 承諾済みの回答
Hello Kevin,

In the latest version, if you call, for example, this.records.setBlank(); a form for adding a new records is cleared automatically.
コメント
There are no comments made yet.
Kevin 承諾済みの回答
Hi Sergey,

Downloaded and installed latest version. Followed your example on a form with LineEdit - Field fields, one TextEdit - Field field, and one ComboBox - Field field. Works!

Thank you!

Kevin
コメント
There are no comments made yet.
  • ページ :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.