Hi Henner, You are right. Now I changed to add a new Interceptor for key generation. Thanks.
Lihui -----Original Message----- From: Henner Kollmann [mailto:[EMAIL PROTECTED] Sent: December 3, 2005 2:35 AM To: Pang, Lihui Cc: jdbforms-interest@lists.sourceforge.net Subject: RE: [dbforms] It's possible to get key by generator? > > I went through the src code and I think in this case we can't > use interceptor. Interceptor does accept the parameters, but > used them to do "operation permission" check. Please see > Table.processInterceptors(). The return is int. The value is > related to something like "GRANT_OPERATION" -- please see > InsertEvent table. > No the interceptor do not use the parameters for anything. Dbforms just transport them into the interceptor. What you do with them is for your own. Yes you can do access checking in interceptors. That's one of there tasks. The other one is to do some data related stuff - e.g. get primary keys in insert events. So the params are for your own use - dbforms do'nt use them Therefore it's the right place to put the sequence name into your interceptor - only this interceptor is interested in it. The other interceptors are not. Yes you can use more then one interceptor. Regards, Henner ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37&alloc_id865&op=click _______________________________________________ DbForms Mailing List http://www.wap-force.net/dbforms