1. Kevin
  2. Valentina Studio
  3. Sunday, June 21 2020, 11:41 PM
  4.  Subscribe via email
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
Comment
There are no comments made yet.
Kevin Accepted Answer
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
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Studio
  3. # 1
Sergey Pashkov Accepted Answer
Hello Kevin,

In the latest version, if you call, for example, this.records.setBlank(); a form for adding a new records is cleared automatically.
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Studio
  3. # 2
Kevin Accepted Answer
Thank you!
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Studio
  3. # 3
Sergey Pashkov Accepted Answer
Hello Kevin,

No, there is no way to do it. I think we'll add it as it can be useful
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Studio
  3. # 4
  • Page :
  • 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