My combobox does not display the information in the BO


Author
Message
Marcia G Akins
Marcia G Akins
Advanced StrataFrame User (698 reputation)Advanced StrataFrame User (698 reputation)Advanced StrataFrame User (698 reputation)Advanced StrataFrame User (698 reputation)Advanced StrataFrame User (698 reputation)Advanced StrataFrame User (698 reputation)Advanced StrataFrame User (698 reputation)Advanced StrataFrame User (698 reputation)Advanced StrataFrame User (698 reputation)
Group: StrataFrame Users
Posts: 322, Visits: 529
This one is really driving me crazy ( a short drive for me ).

I have a combo box that displays all the US states - it displays the full state name and the value member is the postal abbreviation. I can see the data in the table in SQl Server and in th BO when I step through the code. But the state does not display in the combo unless I edit the record in the UI and save it. What is up with this?

Thanks

Reply
Marcia G Akins
Marcia G Akins
Advanced StrataFrame User (698 reputation)Advanced StrataFrame User (698 reputation)Advanced StrataFrame User (698 reputation)Advanced StrataFrame User (698 reputation)Advanced StrataFrame User (698 reputation)Advanced StrataFrame User (698 reputation)Advanced StrataFrame User (698 reputation)Advanced StrataFrame User (698 reputation)Advanced StrataFrame User (698 reputation)
Group: StrataFrame Users
Posts: 322, Visits: 529
Ivan George Borges (11/24/2008)

Is the Postal Abbreviation the PK for the State's table?

Hi Ivan.

Actually, it is not a states table Smile I have a pair of tables called lookup_hdr that contains all the categories for the various lookups used in the app and lookup_det that contains all the lookup detail items for each category. No, the state abbreviation is not the PK in lookup_det - I never use keys that contain business information.

The odd thing is that I have combos set up in exactly the same way in other forms in the application and it works just fine in the other forms Sad This one had a bug in it earlier - the combo was set up incorrectly and was using the PK as the value member but the field in the table it was trying to update was a VARCHAR. I wonder if this has something to do with it, but if it does, I have absolutely no idea of how to fix it.

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
Marcia G Akins - 18 Years Ago
Ivan George Borges - 18 Years Ago
Trent L. Taylor - 18 Years Ago
Marcia G Akins - 18 Years Ago
                     Well, it could be a couple of things. You may want to change...
Trent L. Taylor - 18 Years Ago
                         [quote][b]Trent L. Taylor (11/24/2008)[/b][hr]Well, it could be a...
Marcia G Akins - 18 Years Ago
                             Is there any way that you could slap this on a sample form and let me...
Trent L. Taylor - 18 Years Ago
                                 [quote][b]Trent L. Taylor (11/24/2008)[/b][hr]Is there any way that...
Marcia G Akins - 18 Years Ago
                                     You are probably cutting the code from one place and the pasting it....
Trent L. Taylor - 18 Years Ago
                                         [quote][b]Trent L. Taylor (11/24/2008)[/b][hr]You are probably cutting...
Marcia G Akins - 18 Years Ago
Marcia G Akins - 18 Years Ago

Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search