Gossamer Forum
Home : Products : DBMan : Discussions :

$db_key_track problems with custom forms

Quote Reply
$db_key_track problems with custom forms
i'm using the $db_key_track option and building custom forms, but i'm unable to get the ID generated and also the (&get_defaults) values from my default.cfg file within the forms. the default.count file permissions are set correctly. if i use the $db_auto_generate = 1; i get all the defaults and ID generated - i've looked at this for a day now and i'm unable to get it, can someone please help me out. any help would be greatly appreciated.

thanx much
Quote Reply
Re: [trini809] $db_key_track problems with custom forms In reply to
It's hard to just guess what could be wrong. Please save your .cfg file as a text file and post the full url to where it can be viewed on your server.

Be sure your fields are numbered from 0 to whatever in consecutive numbers. Also you must list every field that is in your .cfg file within your sub html_record_form. This can be visible or as hidden fields.

Unoffical DBMan FAQ

http://creativecomputingweb.com/dbman/index.shtml/
Quote Reply
Re: [LoisC] $db_key_track problems with custom forms In reply to
hi louisc

thanx for your rsponse, i've saved the *.cfg file for you to view,

http://161.58.220.99/default_cfg.txt

by studying the .cfg file i still cannot find the problem
what are your thoughts?
thanx again for your help

- trini809
Quote Reply
Re: [trini809] $db_key_track problems with custom forms In reply to
The id field should by changed from:

ID => [0, 'number',5,8,1,'',''],

to:

ID => [0, 'numer',5,8,1,'',''],

It's written differently to define a number field in perl.

As the final field, you will want to remove the comma after it.

SRecorder => [62, 'alpha',25,100,0,'i_sound_recording.gif','']

and you might want to change this to your site's homepage url:

$auth_logoff = "http://www.gossamer-threads.com/scripts/dbman/";

That is all I could see, hopefully that will solve your problem, if not post again and we can look at your other files.

Unoffical DBMan FAQ

http://creativecomputingweb.com/dbman/index.shtml/
Quote Reply
Re: [LoisC] $db_key_track problems with custom forms In reply to
hi ya louisc

thanx for your time and advise, i did the amends but the problem still exists. what do you suggest is the next step.

- trini809
Quote Reply
Re: [trini809] $db_key_track problems with custom forms In reply to
One option would be to save your html.pl file as a text file and post the url.

OR

have you by any chance used JPDeni's configurator? If you visit her site she has a configurator which will help you to setup your .cfg file, and your html_record_form and html_record displays. There is extra codes and the formatting may not be exactly what you want, but you can easily modify the results for your own look and feel. http://www.jpdeni.com/dbman/

Unoffical DBMan FAQ

http://creativecomputingweb.com/dbman/index.shtml/
Quote Reply
Re: [LoisC] $db_key_track problems with custom forms In reply to
hi ya louis..

i found the error i made and all is well now - thanx for your help

- trini