I have made DBMan create href links beside each record when it is displayed in sub html_record. This means that a user can simply click on a link and directly edit / delete a record. The problem is when a record is being viewed as part of a search. Once the user has modified the record, they are at a dead end so to speak. The must manually click the back button on their browser 2 times and then hit refresh to show the newly updated information as search results.
As a partial solution, I have found the java script to make the browser go back 2 steps, but the page is displayed from cache. How do I make it refresh once it is displayed again?
<FORM>
<INPUT TYPE="Button" VALUE="Return to Record" onClick="history.go(-2)">
</FORM>
For what it's worth, one of the first lines in my sub html_record is print qq|<a href="$db_script_url?db=default&uid=$db_uid&ID=$rec{'ID'}&modify_form=1">EDIT THIS RECORD</a>| if ($per_mod);
This lets users have easy access to editing a record if they are viewing it. Thanks to JP Deni's relational mod for the clue on this one!
Wes
As a partial solution, I have found the java script to make the browser go back 2 steps, but the page is displayed from cache. How do I make it refresh once it is displayed again?
<FORM>
<INPUT TYPE="Button" VALUE="Return to Record" onClick="history.go(-2)">
</FORM>
For what it's worth, one of the first lines in my sub html_record is print qq|<a href="$db_script_url?db=default&uid=$db_uid&ID=$rec{'ID'}&modify_form=1">EDIT THIS RECORD</a>| if ($per_mod);
This lets users have easy access to editing a record if they are viewing it. Thanks to JP Deni's relational mod for the clue on this one!
Wes