1. Robert Kantor
  2. Valentina Studio
  3. Monday, May 13 2019, 03:01 PM
  4.  Subscribe via email
Hello. I am trying to figure out how to show a warning dialog if a user edits a field and then clicks forward or back a record button. Is there any sample forms with error capturing prior to allowing the user move to the next record and lose those changed in edit mode?

Thank you,
Robb
Comment
There are no comments made yet.
Robert Kantor Accepted Answer
Perfect, thank you.

Robb
Comment
There are no comments made yet.
  1. one week ago
  2. Valentina Studio
  3. # 1
Sergey Pashkov Accepted Answer
Hello Robert,

You can check if the record was modified and apply changes if necessary, for example:

if( this.records.isDirty )
{
apply = QMessageBox.question( 'Title', 'The record was modified. Would you like to apply changes?' ) == QMessageBox.StandardButton.Yes;
if( apply )
this.records.updateRecord();
}

this.records.nextRecord()
Comment
There are no comments made yet.
  1. one week ago
  2. Valentina Studio
  3. # 2
  • 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. 0 subcategories
BETA Testing
  1. 0 subcategories
Education & Research
  1. 0 subcategories
Omegabundle
  1. 0 subcategories