1. Robert Kantor
  2. Valentina Studio
  3. 月, 5月 13 2019, 03:01 PM
  4.  メールで購読
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
コメント
There are no comments made yet.
Robert Kantor 承諾済みの回答
Perfect, thank you.

Robb
コメント
There are no comments made yet.
Sergey Pashkov 承諾済みの回答
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()
コメント
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.

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