Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Barry Fogarty 493 posts 1129 karma points
    Feb 01, 2016 @ 17:24
    Barry Fogarty
    0

    Dropdown saving prevalue Key (not value) to content

    I have a normal dropdownlist datatype in a LeBlender grid editor. The value saved to the content is the prevalue ID, not the text value as expected. The behaviour is the same if I try with a dropdownlist publishing keys datatype.

    I believe this is a result of upgrading to Umbraco 7.3.5. Pretty sure it was working properly before that.

  • Mario Lopez 168 posts 958 karma points MVP 4x c-trib
    Apr 10, 2016 @ 08:36
    Mario Lopez
    0

    Hi Barry, did you find the solutions for this? I'm having exactly the same problem.

  • Barry Fogarty 493 posts 1129 karma points
    Apr 11, 2016 @ 15:37
    Barry Fogarty
    0

    See this thread Mario, not sure if it the same issue but you could try using my GetRawValue() extension method.

    https://our.umbraco.org/projects/backoffice-extensions/leblender/bug-reports/74357-allow-to-retrieve-raw-property-value

  • Mario Lopez 168 posts 958 karma points MVP 4x c-trib
    Apr 12, 2016 @ 02:40
    Mario Lopez
    0

    Thanks Barry, I just ended up using the publishing key. Don't understand why the Dropdown doesn't do what it should though.

  • Mark Bowser 273 posts 860 karma points c-trib
    Apr 13, 2017 @ 13:32
    Mark Bowser
    0

    I have this problem. What is a publishing key?

  • Barry Fogarty 493 posts 1129 karma points
    Apr 13, 2017 @ 14:28
    Barry Fogarty
    0

    @Mark, it means the value exposed by the property will be the ID (key) rather than the Text value. I'm not really too sure why that would be useful, unless you are doing a lookup based on it or something, and the text value might change.

Please Sign in or register to post replies

Write your reply to:

Draft