Gossamer Forum
Home : Products : DBMan : Installation :

Can't Modify Record (can't find requested record)

Quote Reply
Can't Modify Record (can't find requested record)
Using this link in sub html_home...

<A HREF="$db_script_link_url&$db_cols[$auth_user_field]=$db_userid&modify_form=1">Modify</A>


...I'm able to find a record for modifying.

But when I try the same link directly from sub html_add_success I get the error message:
Can't Modify Record (can't find requested record)

I have these configurations: $auth_user_field = 2;
userid => [2,'alpha',-2,15,0,'',''],
$db_key = 'userid';

If you want to see the whole script, it's at:
http://www.schoolshows.com/default_cfg.txt
and
http://www.schoolshows.com/html_pl.txt

Thanks again. I'm getting close!

Rick

Quote Reply
Re: Can't Modify Record (can't find requested record) In reply to
I'm not sure that I understand what you are trying to do, but here's what I think you are saying.

On the html_add_success page you want a modify link that will take you directly to the modify_form for the current record. Insert the following bold code into your html_add_success sub:

Code:
<p><center><$font_title><b>Record Added</b></font></center><br>
<center>
<$font>
<P><Font face="Verdana, Arial, Helvetica" Size=2>The following record was successfully added to the database:</FONT>
|; &html_record(&get_record($in{$db_key})); print qq|
</font></p><A HREF="$db_script_link_url&modify_form=1&ID=$in{'ID'}">Modify</A>
|; &html_footer; print qq|
</center>
Quote Reply
Re: Can't Modify Record (can't find requested record) In reply to
Sorry. Let me rephrase my question.

I can get to modify_form_record sucessfully (with the selected record showing). But after modifying the record I get the error message:

Can't Modify Record (can't find requested record)

Could it have something to do with the fact I'm using 'userid' for my $db_key?

Rick

Quote Reply
Re: Can't Modify Record (can't find requested record) In reply to
Problem solved! (I think)

I was missing my db key ("userid") in record_form. After entering it, my modification subs work fine.

Many thanks (AGAIN!) for your fine support!

Rick