> > > This is why I don't understand what's wrong. I use this method countless >> time >> > on countless forms. >> >> Are you setting the DefaultValues dict for the bizobj? Otherwise, >> a new record will contain an empty string for that field, and will generate >> an error, since "" != "-Select A Province/State-". >> >> >> -- Ed Leafe >> >> > Ok, After countless hours of trying to figure this out, searching the mail archive, reading the api docs etc, I just can't figure this out. When I have a key (int) and choices (varchar) pair to work with, I get the dropdownlist happening no problem.
How do I make this work where the only thing I have to work with a varchar(2) as the primary key. There are no choices except the same 2 character primary key. A couple questions first I guess. Do I need a key & choice pair? If I only have a 2 character string to work with, should the ValueMode = "String" ? I want to figure this out but can't wrap my head around it. No matter what I do I end up with one of 2 errors: ValueError: Trying to set dDropdownList1.Value (DataSource: 'dbo.Cities', DataField: 'ProvinceState') to these invalid selections: [u''] OR ValueError: String must be present in the choices: '' Thanks Carey --- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html --- _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/dabo-users Searchable Archives: http://leafe.com/archives/search/dabo-users This message: http://leafe.com/archives/byMID/camgtpff7rahboxs1ycppvyb3m5myqe_h9lee5dsqgusxsrb...@mail.gmail.com
