I have a simple SQL Azure Database dropdown lookup scenario which doesn't seem to work and is driving me a bit crazy.
I have a table called DataStore which looks a bit like this:
DataStore
DataStoreID (PK)
DataStoreName
DataStoreTypeID (FK)
I have another table that defines the values for DataStoreTypeID called DataStoreType
DataStoreType
DataStoreTypeID (PK)
DataStoreTypeName
I want a form for Data Store that shows a dropdown for DataStoreType, showing the name rather than the ID, showing the currently selected ID with the corresponding name on edit and saving the ID correctly on save - normal stuff for dropdowns, in other words.
I've got this working when showing the DataStoreTypeID - the correct value is shown and the value will save. When I configure the DataStoreTypeName to be shown, the dropdown always shows the first value in the DataStoreType table and won't save the value at all.
Has anyone got this scenario working with SQL Azure connections?
Thanks!