Gossamer Forum
Home : Products : DBMan : Installation :

Category Defaults to blank

Quote Reply
Category Defaults to blank
Whenever I modify a record in the database, the category defaults to ---- (blank). Is there a way to prevent it from doing that? Thanks.

Quote Reply
Re: Category Defaults to blank In reply to
You should use the following codes in the sub html_record_form routine:

Code:

|; print &build_select_field("Category", "$rec{'Category'}"); print qq|


And since you have changed CATEGORY names in your default.cfg file, you probably did not update the default.db file, which means that the select field cannot find the category names.

Good luck!

Regards,

Eliot Lee
Quote Reply
Re: Category Defaults to blank In reply to
Not sure if this could also be your problem, but be sure you do not have spaces between your category options.

it should look something like this:

option1,option2,option3

You can always add new categories without having to make changes in the database itself (the choices would not have been made for that category). But if you left a space between those you added, this would cause problems.

Unoffical DBMan FAQ
http://webmagic.hypermart.net/dbman/
Quote Reply
Re: Category Defaults to blank In reply to
Uh...if you have changed CATEGORY names of CATEGORIES already in the DATABASE, then the DATABASE file would be corrupted! Tongue

Regards,

Eliot Lee
Quote Reply
Re: Category Defaults to blank In reply to
The person who set up the database left spaces between the catagory options. Deleting the spaces fixed the problem. Thank you.