Skip to main content
11 events
when toggle format what by license comment
Nov 5, 2018 at 14:19 comment added chris rowles I've tried to do this using old style javascript for(i=0;i<FunctionArray.length;i++) and I can see the labels in the console window, but its beyond my skill level at the moment how to display them. Do I need to create a new interface and a class for this and then map the property to this or am missing the point?
Nov 2, 2018 at 11:57 comment added Gautam Sheth would be something like public Function : Array and then iterate over it. Check this link and this link
Nov 1, 2018 at 16:38 comment added chris rowles OK. I get how to add a property. But any ideas as to how I would create an array for a managed metadata field?
Oct 31, 2018 at 19:09 comment added Gautam Sheth I think you need to create another property of type any or array and then iterate over, will require some trial and error !
Oct 31, 2018 at 16:53 vote accept chris rowles
Nov 7, 2018 at 13:38
Oct 31, 2018 at 16:53 comment added chris rowles Great that worked really well thanks! Great Job! One final thing to do is to display the managed metadata fields - I have tried adding the labels to the interface and class eg this.CFLabel = item.Function["0"].Label. This works well but obviously I am only getting the label by referencing the position of the item in an array - is there another way of doing this?
Oct 31, 2018 at 15:34 comment added Gautam Sheth You will have to change the html to item.URL and item.Desc respectively in the anchor tag
Oct 31, 2018 at 15:28 comment added Gautam Sheth Updated the code, please try and let me know. If it helped you fix the issue, you can accept it as answer by ticking the checkbox besides the answer like this
Oct 31, 2018 at 15:26 history edited Gautam Sheth CC BY-SA 4.0
added 686 characters in body
Oct 31, 2018 at 14:40 comment added chris rowles I have updated the interface but still can't get the description - have tried URL.desc as well as URL.description
Oct 31, 2018 at 14:24 history answered Gautam Sheth CC BY-SA 4.0