Gossamer Forum
Home : Products : DBMan : Discussions :

Re: [Rashid12] A different use of dbman

Quote Reply
Re: [Rashid12] A different use of dbman In reply to
In the default DBman, following login, the user is directed to sub html_home by this bit of code in db.cgi;

Code:
elsif ((keys(%in) <= 2) ||
($in{'login'})) { &html_home; }
else { &html_unkown_action; }

You could either;

1. Change the html_home to go to a new sub that returns "search results" based on the user's ID etc., (start with the sub html_modify_search and hack away a little at a time).

or

2. kinda like Watts said, a simpler method, make a link in the sub html_home that is an "option" to "modify your lastest record" (start with the modify link in html_footer and add the search criteria).

The Optional method is nice considering what happens if you force the user to the modify form for the lastest record, and the user has no record? Just depends how flexible you want to be with the users (ie predict the user's desires)

edit: So I think this was covered before,

http://www.jpdeni.com/dbman/Mods/autosearch.txt

Last edited by:

joematt: Apr 7, 2003, 8:33 AM
Subject Author Views Date
Thread A different use of dbman Rashid12 3301 Apr 6, 2003, 7:10 PM
Post Re: [Rashid12] A different use of dbman
Watts 3151 Apr 7, 2003, 7:55 AM
Thread Re: [Rashid12] A different use of dbman
joematt 3180 Apr 7, 2003, 8:22 AM
Post Post deleted by Rashid12
Rashid12 3139 Apr 7, 2003, 8:40 AM