powercat-creator-kit
powercat-creator-kit copied to clipboard
[BUG]: DetailsList does not honor CurrentSortColumn or CurrentSortDirection inputs on Dataverse table
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
- The items property is assigned a filtered dataverse table
- The columns_items is set to a table which defines all the columns that is to be displayed for the grid
- CurrentSortColumn set to the logical name string of the date type column ("xxxx_starttime"). This is also the first column in the list
- "CurrentSortDirection " is set to descending ('PowerCAT.FluentDetailsList.CurrentSortDirection'.Descending)
- 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
- Is the process that I am following to display the data correct? if not then what am I missing?
- 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