Gossamer Forum
Home : Products : DBMan : Discussions :

check boxes in config file?

Quote Reply
check boxes in config file?
Hi, I'm having a problem getting my config file to work (the db_def is below), as whenever I try to create a new record, dbman errors back to me that it is unable to be added, "Bios (Too long. Max length: 3)". Even when I comment out that particular line (#9 of the db_deb) it just goes to the next one, i.e. #10, and so on. Is there a breakdown in my config for items in the double-digits?

What am I doing wrong? I've made sure that there are no stray commas/quotes missing, etc.

tia, Neal

------------
%db_def = (
'Issue' => [0, 'numer', 5, 8, 1, '', ''],
'Nickname' => [1, 'alpha', 40, 255, 0, '', ''],
'URL' => [2, 'alpha', 40, 255, 1, 'http://', '^http://'],
'Date' => [3, 'date', 12, 15, 1, &get_date, ''],
'Names' => [4, 'alpha', '40x3', 255, 0, '', ''],
'Articles' => [5, 'alpha', '40x3', 255, 0, '', ''],
'Email' => [6, 'alpha', 0, 3, 0, '', ''],
'Rough' => [7, 'alpha', 0, 3, 0, '', ''],
'Smooth' => [8, 'alpha', 0, 3, 0, '', ''],
'Bios' => [9, 'alpha', 0, 3, 0, '', ''],
'Database' => [10, 'alpha', 0, 3, 0, '', ''],
'Indexed' => [11, 'alpha', 0, 3, 0, '', ''],
'Comments' => [12, 'alpha', '40x3', 255, 0, '', '']
);


Quote Reply
Re: check boxes in config file? In reply to
You have set the max_length for all those fields to 3

# Field => pos, type, form_size, max_length, required, default, format
'Email' => [6, 'alpha', 0, 3, 0, '', ''],
'Rough' => [7, 'alpha', 0, 3, 0, '', ''],
'Smooth' => [8, 'alpha', 0, 3, 0, '', ''],
'Bios' => [9, 'alpha', 0, 3, 0, '', ''],
'Database' => [10, 'alpha', 0, 3, 0, '', ''],
'Indexed' => [11, 'alpha', 0, 3, 0, '', ''],

Just increase the limit.

- Mark


Astro-Boy!!
http://www.zip.com.au/~astroboy/
Quote Reply
Re: check boxes in config file? In reply to
Well, I forgot to make clear that all these fields (the ones with 3 as the limit) are checkbox fields, and so I was under the impression that "3" was necessary to delimit those fields. Is this correct?

Quote Reply
Re: check boxes in config file? In reply to
aha! I got it ... the fields did need to be lengthened, you were very correct. somehow from the readme I got the wrong impression... I just bumped each up to 99 and it works great now.

~:^)