Gossamer Forum
Home : Products : DBMan : Customization :

Date Doen't Want to Update

Quote Reply
Date Doen't Want to Update
I've customized the orinal DB a bit using HTML instead of auto, but I noticed that my date field - calls &get_date only correctly generates the add_date, and will not update when modified. I guessing since I have it as a hidden form field, the value is still there and is not getting the new call. Any suggestions as to how I would go about making the hidden date field update when modified?

Dan

Quote Reply
Re: Date Doen't Want to Update In reply to
In sub html_modify_form_record, after

my (%rec) = &get_record($in{'modify'});

add

$rec{'Date'} = &get_date;

Be sure to replace Date with the actual name of your field.

JPD
http://www.jpdeni.com/dbman/
Quote Reply
Re: Date Doen't Want to Update In reply to
Thanks!

Also another quick question - how do I preview a record - say someone logs on and I want to display thier records on the logon screen I tried using the modify_success form:

|; &html_record(&get_record($in{$db_key})); print qq|

but I just get blank fields - it doesn't want to pull up anydate associated with $db_key - do you have any ideas JP? Thanks so much for your help!

Quote Reply
Re: Date Doen't Want to Update In reply to
Do you mean to display their records in sub html_home? (It's not possible to display records on the login screen.)

Is the userid field the key field? If so, you could use

|; &html_record(&get_record($db_userid)); print qq|


JPD
http://www.jpdeni.com/dbman/
Quote Reply
Worked like a charm! In reply to
Thanks JP you're the best :) !