Copied to clipboard

Flag this post as spam?

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


  • Asif Malik 203 posts 339 karma points
    Dec 19, 2012 @ 14:23
    Asif Malik
    0

    Checkboxlist sometimes saves label, sometime preValueId

    Hi I have created a new datatype (using the built in control - Checkbox list - with 3 test values)

    The idea is to add this as a new property on a Document type, and also add this as a property to the Member Type, in order to control viewing permissions

    When someone views a piece of content we can check if they have the relevant permission to view the full contents of the page, if not we just show a teaser piece of content.

    The problem i have is that when i retrieve the values for the page, i get a string array of the datattypes labels, however when i retrieve the values for the logged in member i get an int array of the datatypes prevalues. Both of the datas are correct as to what has been selected for them in umbraco backoffice.

    Not sure if i am doing something worng but it seems very strange that Documents are saving the lables, whereas members are saving the prevalues.

    Any help would be appreciated.

    Thanks

Please Sign in or register to post replies

Write your reply to:

Draft