bmarner
Posts: 6
|
| Posted: 07/14/2004, 5:38 AM |
|
Properties for SELECT/LISTBOX are set to "Please make your choice". But: When the page ist loaded you see a value of the first selected record *every* time.
Any idea?
Bernd Marner
|
 |
 |
peterr
Posts: 5971
|
| Posted: 07/14/2004, 10:12 PM |
|
What kind of form is the ListBox placed in? A record form? A search form? Is it in Insert mode or Update mode (do you see Update or Insert buttons)? What are the ListBox properties?
Also try temporarily changing the ListBox to a TextBox and see if it shows anything then.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
 |
 |
sayeed
|
| Posted: 07/15/2004, 1:28 AM |
|
I am unable understand ur messege.I want question osn datastructure
|
|
|
 |
bmarner
Posts: 6
|
| Posted: 07/15/2004, 2:11 AM |
|
It is a search form. I have tried the temporary change - but the result is the same as before.
|
 |
 |
peterr
Posts: 5971
|
| Posted: 07/15/2004, 2:38 AM |
|
OK, then:
What are the search form properties?
What are the listbox properties?
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
 |
 |
bmarner
Posts: 6
|
| Posted: 07/15/2004, 2:54 AM |
|
I have made 2 screenshots of the properties windows - is there a mailadress i can send them?
|
 |
 |
peterr
Posts: 5971
|
| Posted: 07/15/2004, 2:58 AM |
|
Sure, you can submit a support request at http://support.codecharge.com and attach the screenshots then.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
 |
 |
teufel
Posts: 13
|
| Posted: 07/15/2004, 2:19 PM |
|
Suppose you have a listbox composed from two database columns named code and name. Assume code is of type INTEGER.
Example:
code | name
-------------------------------------
0 | First Entry Name
1 | Second Entry Name
2 | Third Entry Name
-------------------------------------
Then you would do the following setup in your listbox properties:
Set Bound Column to code
Set Text Column to name
If you set Data Type to INTEGER (as it would be IMHO the most logical thing to do...., since the bound column is a column of type integer), then you get this problem you are talking about....
So, instead of setting the Data Type to be of type INTEGER, set Data Type to be of type TEXT, and I think you will get rid of this problem (instead of getting "First Entry Name" selected, you will get "Please make your choice" selected).
I believe it has something to do with the fact that the template value for entry "Please make your choice" is filled with "" (empty string) which would not be understood as an integer by CCS..... but well, the exact explanation for that you'd better ask Peter...
I think this is anyway some strange behaviour of CCS, if not some bug, since when you deal with record forms, the most logical "paradigm" is to be followed, i.e. you should setup Data Type as being of type INTEGER...
_________________
--teufel |
 |
 |
teufel
Posts: 13
|
| Posted: 07/15/2004, 2:24 PM |
|
Important info I forgot to specify: this problem can be experienced within search forms.
So when I have a search form I use to specify the Data Type as being of type TEXT.
_________________
--teufel |
 |
 |
bmarner
Posts: 6
|
| Posted: 07/21/2004, 2:28 AM |
|
After hours i have found a working solution:
My Listbox was composed from *one* column of Type TEXT. I tried to compose it of *two* columns (Type Text both) - but the result was the same as before.
Then i composed the Listbox of *two* colums - one INTEGER and the other (that was shown) TEXT. Suprise: This works!!!
Bernd
|
 |
 |