Dropdown lists - How to store the text not a numerical key value?
After 2.5 years using Umbraco I'm embarrassed to ask such a basic question;
When I create a dropdown list datatype how can I store the text value and not the numerical key. I don't want to have to do a look-up for the text at a later time I just want to store the value in a nvarchar. If it makes it simpler I'd like the text and value to both be identical and a string not a number.
The dropdown list datatype works in that it is a numerical key and text value pair. You would need to create your own datatype if you wanted it to function in a different way (such as no key/value pair but just the value or to have them combined in a string).
Dropdown lists - How to store the text not a numerical key value?
After 2.5 years using Umbraco I'm embarrassed to ask such a basic question;
When I create a dropdown list datatype how can I store the text value and not the numerical key. I don't want to have to do a look-up for the text at a later time I just want to store the value in a nvarchar. If it makes it simpler I'd like the text and value to both be identical and a string not a number.
Thanks
DC
The dropdown list datatype works in that it is a numerical key and text value pair. You would need to create your own datatype if you wanted it to function in a different way (such as no key/value pair but just the value or to have them combined in a string).
Thought as much. :-(
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.