Gossamer Forum
Home : Products : DBMan : Customization :

%db_select_fields

Quote Reply
%db_select_fields
The script does not like more than one select box in the .cfg file.
Any ideas ??
Below is the code i'm using but only one will display!
(both filed names are specified in the database definition
Thanks. paul


# Select fields. Field name => 'comma seperated list of drop down options'.
%db_select_fields = (
'logo' => 'Operator,Group,3210,Startup');

# Select fields. Field name => 'comma seperated list of drop down options'.
%db_select_fields = (
'ext' => 'bmp,ngg,nol,i61,nsl,mid,rtx');
Quote Reply
Re: %db_select_fields In reply to
Casbourne,

The problem is that you are defining both select fields with the same name: %db_select_fields.

--Lee
Quote Reply
Re: %db_select_fields In reply to
thanks Lee.
I had my suspicions.

Any ideas of a solution?
(I'm new to this stuff so be gentle)

Thanks, paul

Quote Reply
Re: %db_select_fields In reply to
casbourne:

Very easy solution Smile

Just combine all your select fields such as below.

# Select fields. Field name => 'comma seperated list of drop down options'.
%db_select_fields = (
'logo' => 'Operator,Group,3210,Startup',
'ext' => 'bmp,ngg,nol,i61,nsl,mid,rtx'
);

Please note that if you add additional select fields that you would place a comma between the listings, but the select field prior to the ); would not contain a comma. Does that make sense Smile

Hope this helps Smile