DetailsList & Managed Metadata #47
-
Hello, in the Detailslist, control, how can we set a managed metadata value in a column ? Example: We see the @data_type as a text in the column: My question: how can i get the "Label" property ? Thank you in advance |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @Hillgard, Thanks for reaching out.
and then columns_Items property can refer this new column once it is included as part of the data.
|
Beta Was this translation helpful? Give feedback.
Hi @Hillgard,
Thanks for reaching out.
Since Managed metadata value comprises of an Object, one way of getting the Label property is to customize the Input/Items collection by adding a new column which contains Label value. So, the Items property of the detail list will look like this
AddColumns('SharePointList',"InfotopicsLabel",infotopic.Label)
and then columns_Items property can refer this new column once it is included as part of the data.
Table( { ColName: "InfotopicsLabel", ColDisplayName: "Topic", ColSortable: true, ColWidth: 200, ColRowHeader: true, ColResizable: true } )