powercat-creator-kit icon indicating copy to clipboard operation
powercat-creator-kit copied to clipboard

[BUG]: DetailsList does not honor CurrentSortColumn or CurrentSortDirection inputs on Dataverse table

Open tikluganguly opened this issue 1 year ago • 0 comments

Bug Description I have added the detaillist in a canvas app. And have been trying to display a date column in descending order (latest date first). To do that I have done the following steps

To Reproduce

  1. The items property is assigned a filtered dataverse table
  2. The columns_items is set to a table which defines all the columns that is to be displayed for the grid
  3. CurrentSortColumn set to the logical name string of the date type column ("xxxx_starttime"). This is also the first column in the list
  4. "CurrentSortDirection " is set to descending ('PowerCAT.FluentDetailsList.CurrentSortDirection'.Descending)
  5. When I run the app I see that the detailedlist is sorted ascending instead of descending on the date column

So here is my questions

  1. Is the process that I am following to display the data correct? if not then what am I missing?
  2. What is the standard process of displaying a filtered dataset where a date column is sorted in descending order.

I am using the latest version of the component (1.0.20241119.3) There seems to be another person having a similar issue and the link can be found here

https://github.com/microsoft/powercat-code-components/issues/333

tikluganguly avatar Nov 25 '24 13:11 tikluganguly