Frosty the Coder
Legendary Poster
List,
W/in a custom F/B, over a master file, I want to prevent
DELETE from processing if there is transactional data
against that master row.
At first, I tried the F(s)-Suppress Delete, but it didn't
do what I wanted.
I ended up removing the DELETE button from the menu toolbar,
adding my own DELETE(2) button, and pressing DELETE w/in
the ER if no trx records exist. Did I have to approach it
this way, or was there an easier way that I am missing?
The appl then gives the "Are you Sure?" message to which
I can either OK or CANCEL. How do I check which was pressed?
I realize that I could add code to try to FETCH the deleted
record. It not being there would mean OK was pressed. I
just want to know if there is a better way....
TIA
Gene
Gene Piekarski, Jr
AS/400, B733, SP11.2, NT client
AS/400, B733, SP14, W2000 client
XE, SP15.1
W/in a custom F/B, over a master file, I want to prevent
DELETE from processing if there is transactional data
against that master row.
At first, I tried the F(s)-Suppress Delete, but it didn't
do what I wanted.
I ended up removing the DELETE button from the menu toolbar,
adding my own DELETE(2) button, and pressing DELETE w/in
the ER if no trx records exist. Did I have to approach it
this way, or was there an easier way that I am missing?
The appl then gives the "Are you Sure?" message to which
I can either OK or CANCEL. How do I check which was pressed?
I realize that I could add code to try to FETCH the deleted
record. It not being there would mean OK was pressed. I
just want to know if there is a better way....
TIA
Gene
Gene Piekarski, Jr
AS/400, B733, SP11.2, NT client
AS/400, B733, SP14, W2000 client
XE, SP15.1