Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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"]
["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
item.types
item.typeList
[]
Not sure how to display correct values in this case?
I'm using Umbraco 7.5.14
no one knows how to do it?
Did you ever figure this out? I have a similar problem so it's a shame no-one appears to have helped you.
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
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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:
item.types
passes a correct value as["521","527"]
whileitem.typeList
displays an empty list[]
as a resultNot sure how to display correct values in this case?
I'm using Umbraco 7.5.14
no one knows how to do it?
Did you ever figure this out? I have a similar problem so it's a shame no-one appears to have helped you.
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
is working on a reply...