Gossamer Forum
Home : Products : DBMan SQL : Development, Plugins and Globals :

Re: [jean] Split Form Input Plugin

Quote Reply
Re: [jean] Split Form Input Plugin In reply to
Hi Jean,

This particular database has a heap of different modifications and plugins and by the time you try and work out what I have done I think it would easier if you could just give me the few lines of code that can be used to check for errors. It should be something like the following (which I took from GT/SQL/Table.pm). How can I modify this to work within the blue area of my sub (just above my last post).

Thanks

Simon.

# Clear errors.
$self->{_error} = [];
foreach my $col (keys %$c) {
next if ($col eq $ai);
if ($c->{$col}->{not_null} and (!defined $input->{$col} or $input->{$col} !~ /\S/)) {
$self->error ('NOTNULL', 'WARN', $c->{$col}->{form_display} || $col);
$err = 1;
}
}
if ($err) {
if (ref $self->{_error} and @{$self->{_error}}) {
$GT::SQL::error = join "\n", @{$self->{_error}};
return;
}
}

Subject Author Views Date
Thread Split Form Input Plugin jai 7744 Jan 30, 2003, 8:43 PM
Post Re: [jai] Split Form Input Plugin
jai 7606 Feb 4, 2003, 8:51 PM
Thread Re: [jai] Split Form Input Plugin
jean 7590 Feb 7, 2003, 11:41 AM
Post Re: [jean] Split Form Input Plugin
jai 7567 Feb 7, 2003, 5:35 PM
Thread Re: [jean] Split Form Input Plugin
jai 7556 Feb 9, 2003, 6:49 PM
Thread Re: [jai] Split Form Input Plugin
jai 7528 Feb 16, 2003, 9:59 PM
Post Re: [jai] Split Form Input Plugin
jai 7530 Feb 17, 2003, 11:48 PM
Thread Re: [jean] Split Form Input Plugin
jai 7495 Feb 21, 2003, 3:54 PM
Thread Re: [jai] Split Form Input Plugin
jean 7493 Feb 21, 2003, 4:20 PM
Thread Re: [jean] Split Form Input Plugin
jai 7489 Feb 21, 2003, 5:34 PM
Post Re: [jai] Split Form Input Plugin
jai 7391 Mar 3, 2003, 9:59 PM