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 7688 Jan 30, 2003, 8:43 PM
Post Re: [jai] Split Form Input Plugin
jai 7551 Feb 4, 2003, 8:51 PM
Thread Re: [jai] Split Form Input Plugin
jean 7535 Feb 7, 2003, 11:41 AM
Post Re: [jean] Split Form Input Plugin
jai 7512 Feb 7, 2003, 5:35 PM
Thread Re: [jean] Split Form Input Plugin
jai 7501 Feb 9, 2003, 6:49 PM
Thread Re: [jai] Split Form Input Plugin
jai 7472 Feb 16, 2003, 9:59 PM
Post Re: [jai] Split Form Input Plugin
jai 7474 Feb 17, 2003, 11:48 PM
Thread Re: [jean] Split Form Input Plugin
jai 7440 Feb 21, 2003, 3:54 PM
Thread Re: [jai] Split Form Input Plugin
jean 7438 Feb 21, 2003, 4:20 PM
Thread Re: [jean] Split Form Input Plugin
jai 7433 Feb 21, 2003, 5:34 PM
Post Re: [jai] Split Form Input Plugin
jai 7336 Mar 3, 2003, 9:59 PM