[ic] Data validation using mv_click

Bill Carr interchange-users@interchange.redhat.com
Fri May 17 08:36:01 2002


On Fri, 2002-05-17 at 08:13, Tim Nelson wrote:
> 
> --- Bill Carr <bill@worldwideimpact.com> wrote:
> > On Fri, 2002-05-17 at 06:28, Tim Nelson wrote:
> > > 
> > > Thanks Bill, that heads me in the right
> > direction...
> > > 
> > > I really need some more sophisticated validation
> > > than that though. Can I get at the form [values]
> > > at this point (to do some perl) to validate the
> > > fields against other tables?  Can I trigger the
> > > failure from perl? 
> > Yes check out:
> >
> http://interchange.redhat.com/cgi-bin/ic/docfly.html?mv_arg=ictemplates10%2e03
> > 
> > To get to the values check out:
> >
> http://interchange.redhat.com/cgi-bin/ic/docfly.html?mv_arg=ictemplates07%2e00
> > 
> > -- 
> > Bill Carr
> > Worldwide Impact
> > bill@worldwideimpact.com
> > 413-253-6700
> > 
> > _______________________________________________
> > interchange-users mailing list
> > interchange-users@interchange.redhat.com
> >
> http://interchange.redhat.com/mailman/listinfo/interchange-users
> 
> Thanks again Bill !
> 
> Last question is how do I trigger the failure
> from perl... say the "code" field must exist
> in another table, I find it doesn't.. now how I 
> set the error message and force the error
> to happen in the profile.  Clearly, there is
> a bunch of straightforward conditions 
> profile logic can handle, but I don't see
> how to do this.
> Thanks for your patience :-)
$Session->{errors}->{<error_name>} = q{<error_message>};

-- 
Bill Carr
Worldwide Impact
bill@worldwideimpact.com
413-253-6700