Dropdown list - null value


Author
Message
Mark Dowlearn
Mark Dowlearn
StrataFrame Beginner (46 reputation)StrataFrame Beginner (46 reputation)StrataFrame Beginner (46 reputation)StrataFrame Beginner (46 reputation)StrataFrame Beginner (46 reputation)StrataFrame Beginner (46 reputation)StrataFrame Beginner (46 reputation)StrataFrame Beginner (46 reputation)StrataFrame Beginner (46 reputation)
Group: Forum Members
Posts: 34, Visits: 9.9K
Hello,

Newbie question - I'm using a dropdownlist on a web form.  The dropdown is populated from a view which contains possible values for the field with the exception of a null value (empty string).

The database allows nulls in these fields, and the field is set up within the Business Object Mapper to "Use nullable generic". 

All fields that have a non-null value are binding and displaying correctly when the page loads.  However, when the value is null, I'd like the user to see that there is no value for the field by seeing a blank dropdown when the page first loads for editing.  So far, though, I haven't been able to do this.  What I see when the page first loads is the first value of the dropdown list as defined by the view that populates the list of potential values.

I'm sure I'm just missing something simple -- any ideas?

Mark

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search