Gossamer Forum
Home : Products : DBMan : Discussions :

Re: [esm] Creating Categories

Quote Reply
Re: [esm] Creating Categories In reply to
Categories in DBMan would be considered select fields:

In the default.cfg you have as an example:

# Select fields. Field name => 'comma seperated list of drop down options'.
%db_select_fields = (
Category => 'General,Configuration Management,Project Management,Process Improvement,Standards,Testing & Quality Assurance',
Type => 'Web,Newsgroup,Mailing List,FTP,Gopher'
);

And the fields are defined as:

# Definition of your database. Format is
# field_name => ['position', 'field_type', 'form-length', 'maxlength', 'not_null', 'default', 'valid_expr']

Type => [3, 'alpha', 0, 60, 1, '', ''],
Category => [5, 'alpha', 0, 255, 1, '', ''],

As stated in the readme.txt file:

form-length= the length the form field should be. Set to 0 for select, checkbox or radio buttons,

Hope this helps

Unoffical DBMan FAQ

http://creativecomputingweb.com/dbman/index.shtml/
Subject Author Views Date
Thread Creating Categories esm 4411 Jan 30, 2003, 5:43 AM
Thread Re: [esm] Creating Categories
LoisC 4338 Jan 30, 2003, 10:19 AM
Thread Re: [LoisC] Creating Categories
esm 4309 Feb 2, 2003, 3:10 PM
Thread Re: [esm] Creating Categories
wysardry 4280 Feb 2, 2003, 5:58 PM
Thread Re: [wysardry] Creating Categories
esm 4263 Feb 3, 2003, 1:32 AM
Thread Re: [esm] Creating Categories
wysardry 4273 Feb 3, 2003, 2:36 PM
Post Re: [wysardry] Creating Categories
esm 4285 Feb 3, 2003, 3:17 PM