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
321 stars 53 forks source link

[BUG]: indicatortag and fields with custom sort do not render in details list - 3.24083.10 #488

Closed Jenefer-Monroe closed 2 months ago

Jenefer-Monroe commented 2 months ago

Issue

When using the latest version of PowerApps, two things in Details List broke as shown below. I have found a workaround but wanted to post anyway so Creator Kit Team is aware. And also so others in the community could be aware and know a workaround without the struggle bus I had to find the workaround :)

Background

Due to https://github.com/microsoft/powercat-creator-kit/issues/486 I upgraded my PowerApps version from the recommended 3.24081.10 to 3.24083.10. This resolved the sort issue but created an issue with some elements.

Note that I use the Scott Morrow technique to make the details list show all data and not be capped at the 500(?) records. This is also the technique to allow custom sorting. Dataverse Delegable Paging in Power Apps

The Bug

When upgrading to 3.24083.10, suddenly two things broke

  1. The color in the indicatortag stopped working image

  2. The fields which were type string but sorted by another field of type number stopped rendering image

The Workaround

I found that if I add these fields to the hidden gallery (used for Scott's technique) then the issue is resolved image

denise-msft commented 2 months ago

Closing this issue as we were able to resolve offline. The technique using gallery control to get around delegation might have been introducing some extra complications, so we removed the dependency on the workaround and implemented automatic sorting which is now working.