Application is a Static page with dynamic content - NT 6.42
Because this is a static page with dynamic content app, Bruce earlier said that to delete, the delete button had to be on the Form and not the browse. OK, that works for deleting, and that is what I have been doing.
So now, I have a delete button on a form (tps file). But, instead of deleting the record, I want to update it with a flag to indicate that the record is "deleted" and the calling browse will filter out such flagged records. This is so that, if necessary, the "deleted" record can be undeleted by the supervisor. I know - moron customer.
Now, to implement the "delete flag", Bruce suggested the following:
1. In the ValidateDelete embed, set ans = net:ChangeRecord and set the record's delete field flag.
This works fine - the record is not deleted but the delete "flag" field is set in the record. So far, so good.
Now, two issue remain for the complete implementation.
1. When you click the delete button on the form, there is no message asking if the user really wants to delete the record, and I would like to popup a message asking to confirm that the delete is desired, and if the answer is yes, then proceed to the delete flag code, otherwise just ignore the fact the delete was pressed.
2. The actual delete flag code needs to be a bit more than just setting that one flag in that one record. There are child records involved, so I need to also call up the relevant child records and flag them also (so they appear to have been deleted). I would like to do this by calling a common source procedure and have it do the flagging of all the appropriate child records and then return back. Where and how would I call that source procedure?
Can you help with how to deal with these two issues. I've implemented the delete flag method in the desktop version of the app, and it works great, but these two points on the NetTalk app have me stumped.
Mike Springer