This is nice but I would need the opposite. From a string I need to get the numeric preValue. I couldn't find the oppisite methods of GetPreValuesByDataTypeId
I have a dropdownlist with publishing keys, so basically a list like:
scifi 100 horror 101 nature 102 fantasy 103
I pass the name as a querystring parameter (transformed as a rewrited url), so if my querystring parameter is "fantasy", for example, and I need to extract the preValue 103. Actually I do a foreach but I hope there may be a suitable method. thanks!
GetPreValues and single node problem
Hi, I wrote a tiny function thath should return me the id of a prevalue from a string input. This is the code:
Basically the function still returns empty as the navProductId is always null. I cannot get a single node id by value. Any hints?
Could you use the DataTypeService GetPreValuesByDataTypeId method instead of rolling your own?
This is nice but I would need the opposite. From a string I need to get the numeric preValue. I couldn't find the oppisite methods of GetPreValuesByDataTypeId
What does your string contain exactly?
I have a dropdownlist with publishing keys, so basically a list like:
scifi 100
horror 101
nature 102
fantasy 103
I pass the name as a querystring parameter (transformed as a rewrited url), so if my querystring parameter is "fantasy", for example, and I need to extract the preValue 103. Actually I do a foreach but I hope there may be a suitable method. thanks!
is working on a reply...