Caner.B
3rd June 2002, 14:58
Hi ,
I have made a maintan session like ttaad2131m000 Maintain session authorizations by session
and it is possible to delete multiple record from it with using the shift key.
Is it possible to reject multiple records deleting. and allow just one record to delete by each time.
Thanks
Caner
alejandro
3rd June 2002, 15:21
You have a customized session, so you can add code to your script.
I think you can add choice.mark.delete choice section.
choice.mark.delete:
before.choice:
long i,how.many.marked
how.many.marked = 0
for i=1 to filled.occ
if mark.table(i) then
how.many.marked = how.many.marked + 1
endif
endfor
if how.many.marked >1 then
message("No more than 1 record, please")
choice.again()
endif
Hope this help
rupertb
3rd June 2002, 15:24
Hi there,
1. Create your own choice (button)
use the following code:
choice.user.0:
on.choice:
for i = 1 to filled.occ
if mark.table(i) then
|* the following function can test and delete the record
do.occ(i, some_test_function)
endif
endfor
functions:
function some_test_function()
{
db.delete(ttfgld005, db.retry)
}
NPRao
3rd June 2002, 19:40
Another option to do this operation is -
1. Disable the delete command from the standard commands.
2. Add a new form commands and the same code to delete the record, with command availability - one record selected.