1. Implement contraints in your database so that the needed records can't be deleted 2. Write an interceptor which will generate an exception if user tries to delete the wrong records. 3. Show this exception
Cheers, Henner. > -----Ursprüngliche Nachricht----- > Von: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Im > Auftrag von kangi > Gesendet: Montag, 28. März 2005 03:22 > An: jdbforms-interest@lists.sourceforge.net > Betreff: [dbforms] how to prevent the user from deleting the > record incorrectly? > > hi,all: > how to prevent the user from deleting the record incorrectly, > for instance, i have listed several records in the page and > with each record, there's a delete button, but some of the > records may used by other tables (but not the key reference), > when the user want to delete these records, i want to open a > new window to tell them something, for instance, "the record > can not be deleted", how to ? > > thanks > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide Read honest & > candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > DbForms Mailing List > > http://www.wap-force.net/dbforms > ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ DbForms Mailing List http://www.wap-force.net/dbforms