1. Kevin
  2. Valentina Studio
  3. Sonntag, Juni 21 2020, 11:41 PM
  4.  Abonnieren via E-Mail
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
Kommentar
There are no comments made yet.
Kevin Akzeptierte Antwort
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
Kommentar
There are no comments made yet.
Sergey Pashkov Akzeptierte Antwort
Hello Kevin,

No, there is no way to do it. I think we'll add it as it can be useful
Kommentar
There are no comments made yet.
Kevin Akzeptierte Antwort
Thank you!
Kommentar
There are no comments made yet.
Sergey Pashkov Akzeptierte Antwort
Hello Kevin,

In the latest version, if you call, for example, this.records.setBlank(); a form for adding a new records is cleared automatically.
Kommentar
There are no comments made yet.
  • Seite :
  • 1


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

Categories

Announcements & News
  1. 0 subcategories
Valentina Studio
  1. 2 subcategories
Valentina Server
  1. 4 subcategories
Valentina Database ADK
  1. 0 subcategories
Valentina Reports ADK
  1. 0 subcategories
Other Discussions
  1. 2 subcategories
BETA Testing
  1. 0 subcategories
Education & Research
  1. 0 subcategories