Hi,
I've been using the validate record mod successfully for quite some time. Now I'm looking for a way to print validated records to a file at the time the record is validated. (I know there is a print to file when record added mod -- but that doesn't work for me. I need to do it in conjunction with the validate record mod).
Anyhoo...I've been looking at this for several weeks now and I think the place to modify is the end of the sub validate_records routine in db.cgi. Somewhere in here:
}
foreach $key (keys %delete_list) {
$delete_list{$key} ?
($delerrstr .= "$key,") :
($delsuccstr .= "$key,");
}
chop($delsuccstr);
chop($delerrstr);
foreach $key (keys %validate_list) {
$validate_list{$key} ?
($valerrstr .= "$key,") :
($valsuccstr .= "$key,");
Ideally I would like to make $valsuccstr into a small snippet of html/text that includes a few data fields in addition to the $key. Some thing like this:
($valsuccstr .= "$key, <br> $data item #1, <br>$data item #2, <br>etc, etc");
I can't figure out how to make data fields for each validated record accessable in this way. Is this an easy thing to do? Any help from a perl hero out there would so greatfully appreciated. I'm really in over my head here and I'm feeling all beat up.
I hope this makes sense.
Thanks,
Michael
I've been using the validate record mod successfully for quite some time. Now I'm looking for a way to print validated records to a file at the time the record is validated. (I know there is a print to file when record added mod -- but that doesn't work for me. I need to do it in conjunction with the validate record mod).
Anyhoo...I've been looking at this for several weeks now and I think the place to modify is the end of the sub validate_records routine in db.cgi. Somewhere in here:
}
foreach $key (keys %delete_list) {
$delete_list{$key} ?
($delerrstr .= "$key,") :
($delsuccstr .= "$key,");
}
chop($delsuccstr);
chop($delerrstr);
foreach $key (keys %validate_list) {
$validate_list{$key} ?
($valerrstr .= "$key,") :
($valsuccstr .= "$key,");
Ideally I would like to make $valsuccstr into a small snippet of html/text that includes a few data fields in addition to the $key. Some thing like this:
($valsuccstr .= "$key, <br> $data item #1, <br>$data item #2, <br>etc, etc");
I can't figure out how to make data fields for each validated record accessable in this way. Is this an easy thing to do? Any help from a perl hero out there would so greatfully appreciated. I'm really in over my head here and I'm feeling all beat up.

I hope this makes sense.
Thanks,
Michael