Gossamer Forum
Home : Products : DBMan : Discussions :

empty select field in "Modify" mode

Quote Reply
empty select field in "Modify" mode
Hello,

I have a database containing some "select" fields, using the $build_select_field .

When I open a tuple for modifying, it displays the empty value in this select field, and not the real value.

I think that the $build_select_function must use the $rec{'myfield'} info when modifying.

Is this a known problem, or am I doin' something wrong ?

Thx !

embee
Quote Reply
Re: [embee] empty select field in "Modify" mode In reply to
There are a few reasons why this would happen.

First you should be sure that you don't have any spaces between your selections.

This is wrong: Choices => 'Choice 1, Choice2, Choice3 ....

This is correct: Choices => 'Choice 1,Choice2,Choice3 ....

Another reason I have found this problem is when you have fields in your .cfg file that are not also defined in your html_record_form.

Unoffical DBMan FAQ

http://creativecomputingweb.com/dbman/index.shtml/
Quote Reply
Re: [LoisC] empty select field in "Modify" mode In reply to
In Reply To:
First you should be sure that you don't have any spaces between your selections.
This is wrong: Choices => 'Choice 1, Choice2, Choice3 ....
This is correct: Choices => 'Choice 1,Choice2,Choice3 ....