So far, so good.
I found your problem!!
In looking at your files again, I found the following:
In po.cfg you have
'PO_Number' => [ 1, 'alpha', 20, 255, 1, '', ''],
and
$db_key = 'PO_Number';
But in db.cgi, sub switch_to_po, you have
$db_key_pos = 0;
Change the above line to
$db_key_pos = 1;
and you should get your data.
That's why I added the # to the beginning of the lines. I didn't want you to get the blank lines.
Once you make the change in sub switch_to_po, change the code in sub html_record_form to
$rec{$db_key} = $in{$db_key};
&switch_to_po;
%rec2 = &get_record($rec{$db_key});
foreach $col (@db_cols) {
print "--$rec2{$col}--<BR>";
}You should get the entire record from your po file. Once that's working, we'll get the dealer info.
JPD
I found your problem!!
In looking at your files again, I found the following:
In po.cfg you have
'PO_Number' => [ 1, 'alpha', 20, 255, 1, '', ''],
and
$db_key = 'PO_Number';
But in db.cgi, sub switch_to_po, you have
$db_key_pos = 0;
Change the above line to
$db_key_pos = 1;
and you should get your data.
That's why I added the # to the beginning of the lines. I didn't want you to get the blank lines.
Once you make the change in sub switch_to_po, change the code in sub html_record_form to
Code:
my (%rec) = @_; $rec{$db_key} = $in{$db_key};
&switch_to_po;
%rec2 = &get_record($rec{$db_key});
foreach $col (@db_cols) {
print "--$rec2{$col}--<BR>";
}
JPD