Gossamer Forum
Home : Products : DBMan : Customization :

Unable to Modify Record

(Page 2 of 2)
> >
Quote Reply
Re: Unable to Modify Record In reply to
still the same! ouch ouch

umm so you said the nature of the checkbox is not for multi select?? i have seen the multi select field one, but i don't like the look of it..... >_<

but i know i will have to, looks like i dont have any choice.... did anyone had this kind of problem before??? or it was just me??


Quote Reply
Re: Unable to Modify Record In reply to
it kicks back with a 500 error

here is what i got from the script,acorrding to your instruction

sub build_multiple_select_field {
# --------------------------------------------------------
# Builds a multiple SELECT field based on information found
# in the database definition.

my ($column, $value, $size) = @_;
my (@fields, @values, $ouptut);

$size or ($size = 3);

@values = split (/\Q$db_delim\E/,$value); }
@fields = split (/\,/, $db_select_fields{$column});
if (! exists ($db_select_fields{$column})) {
$output = "error building select field: no fields specified/unkown field ($column)!";
}
else {
$output = qq|<SELECT NAME="$column" MULTIPLE SIZE=$size><OPTION>---|;
foreach $field (sort @fields) {
if (grep $_ eq $field, @values) {
$output .= "<OPTION SELECTED>$field\n";
}
else {
$output .= "<OPTION>$field";
}
}
$output .= "</SELECT>";
}
return $output;
}


i have also notice the multi fancy selec mod on the resource centre, is this the superior version of it?

also i have search the archive and the links for multi selection
http://www.gossamer-threads.com/scripts/forum/resources/Forum5/HTML/000957.html

is not working...



thank you :)

> >