hello everyone,
my requirement is when I pressed status update button in below form,
It should popup a dialog asking yes or no .
1. If I press yes the field status of book should updated as approved
and should freeze the row.
2. If I press no the field status of book should updated as rejected.
I wrote the following code, But it was freezing the whole table can anyone
help me solving the issue.
void clicked() { DialogButton dialogB; BooksDetail booksDetaillocal; dialogB = Box::yesNo( " Do You Want To Approve ", DialogButton::Yes, " Status Update ", " Press Yes to Approve "); if (dialogB == dialogButton::yes) { ttsBegin; select forupdate booksDetaillocal; { booksDetaillocal.StatusDetails = StatusDetails::Approved; booksDetaillocal.update(); } ttsCommit; BooksDetail_ds.allowedit(false); } else { BooksDetail_ds.allowedit(true); } super(); }
*This post is locked for comments