Thanks Shawn. I will modify the example in the docs to make it more
complete. I will e-mail you the changes since I don't have cvs access. I
will also look into modifying testsuite or bugtrakker demos to include a
search. As for the entry modification, I forgot to mention that the problem
'mysteriously' disappeared when I installed the new release of dbforms.
However I will look at pluggable events system in case I want to do a more
complex trigger.

> -----Original Message-----
> From: shawn [SMTP:[EMAIL PROTECTED]]
> Sent: 04 February 2003 09:27
> To:   J M Okomba
> Cc:   dbf
> Subject:      RE: [dbforms] Removing entry from fieldValues & searching.
> 
> If you'd like, please write up some documentation about searching.  You
> mentioned the docs
> were incomplete.
> 
> Also about your removing entry problem.
> 
> What I suggest trying is Luca's new pluggable events system.
> 
> You could basically just copy an updateEvent, give it a different name and
> change:
> 
> public void processEvent(Connection con) throws SQLException,
> org.dbforms.event.MultipleValidationException
>     {...
>          
> 
>         // which values do we find in request
>         Hashtable fieldValues = getFieldValues();
> 
> here is where you would need to check fieldValues for an empty string and
> then remove it
> 
> (later the hashtable values from the interceptor are added to this one
> --through a call to Table -- I couldn't see an
> easy way to take the value out)
> 
> Pluggable events are simple.  Luca wrote good code and docs.  Why don't
> you give it a try!!!!
> 
> Shawn
> 
> I can send you the source if you don't have cvs set up (yet)


-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
DbForms Mailing List

http://www.wap-force.net/dbforms

Reply via email to