Copied to clipboard

Flag this post as spam?

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


  • nickornotto 403 posts 907 karma points
    Oct 11, 2017 @ 10:15
    nickornotto
    0

    Display checkbox list of values in custom list view

    I am trying to do a custom listview for my products.

    Each product has a checkbox list of multiple choice so the value of the property is an array, for example: ["521","527"]

    In my listview I want to display a list of values (text) instead of numbers, eg. "shirt, sleeve".

    So far I have added a function in my angular controller but I'm getting an empty array as a result.

    I followed the documentation https://our.umbraco.org/apidocs/ui/#/api/umbraco.resources.entityResource and wrote my function:

    function getTypes(item) {
            entityResource.getByIds(item.types, "DataType")
                .then(function (entity) {
                    item.typeList = entity;
                });
    

    item.types passes a correct value as ["521","527"] while item.typeList displays an empty list [] as a result

    Not sure how to display correct values in this case?

    I'm using Umbraco 7.5.14

  • nickornotto 403 posts 907 karma points
    Oct 17, 2017 @ 12:13
    nickornotto
    0

    no one knows how to do it?

  • Ian Robinson 79 posts 143 karma points
    Jan 18, 2018 @ 08:06
    Ian Robinson
    0

    Did you ever figure this out? I have a similar problem so it's a shame no-one appears to have helped you.

  • Søren Tidmand 129 posts 366 karma points
    Jan 18, 2018 @ 08:40
    Søren Tidmand
    0

    Hi Manila and Ian,

    did you read this reply on a similar issue from April 2017?

    https://our.umbraco.org/forum/umbraco-7/using-umbraco-7/69202-display-dropdown-text-in-list-view#comment-269493

    I did not try it out myself, but Bjarne's suggestion seems to be relevant to your issue.

    /Søren

  • 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.

Please Sign in or register to post replies