microsoft / powercat-creator-kit

This toolkit helps create well-designed Power App experiences on the web & mobile. It contains a component library; PCF controls and other utilities that increase developer productivity.
MIT License
296 stars 49 forks source link

[BUG]: DetailsList does not render Dataverse Multi Select Choices #419

Closed martintoelk closed 7 months ago

martintoelk commented 8 months ago

Describe the bug

As a Maker I want to add DataVerse Multiselect Choices to a DetailList Example: image

The Fluent UI Details List seems to show empty columns image

The new "Preview Modern Control Table Dataverse only" control is capable of rendering the Dataverse Multi Select Choices

image

To Reproduce Steps to reproduce the behavior:

  1. Create a new Dataverse Multi Select Choices (new_multi_select_repro) in a table (new_table) image
  2. Create a new Custom Page
  3. Add the Fluent Detailslist Control
  4. Select the "new_table" in the "Record (items)" dropdown
  5. Select any random view
  6. ensure that the column "new_multi_select_repro" is selected in the "fields"
  7. Under "Columns" add the following Power FX Code
  8. Table( { ColName: "new_multi_select_repro", ColDisplayName: "Multi Select Choice Column", ColWidth: 200, ColSortable: true, ColIsBold: true, ColResizable: true } )

Expected behavior The DetailsList renders the content of the new_multi_select_repro, simliar to the "Preview Modern Control Table Dataverse only" control / Dataverse Grid

AB#958

denise-msft commented 7 months ago

@martintoelk this is currently expected behavior as we do not support complex types in DetailsList. Workaround is to use the AddColumns() method to add the concatenated values to the Items property table passed in. You could implement this with the multiple value columns feature in DetailsList (shown as Tags) to display the values in one cell