Code Fix: The sorting order on a Table column in a View or a Form is reversed after upgrading to K2 4.7

  • 16 February 2021
  • 0 replies
  • 19 views

Badge +6
 

Code Fix: The sorting order on a Table column in a View or a Form is reversed after upgrading to K2 4.7

KB001872

PRODUCT
K2 smartforms 4.7
LEGACY/ARCHIVED CONTENT
This article has been archived, and/or refers to legacy products, components or features. The content in this article is offered "as is" and will no longer be updated. Archived content is provided for reference purposes only. This content does not infer that the product, component or feature is supported, or that the product, component or feature will continue to function as described herein.

Issue Description
When using a rule to execute a SmartObject List method, mapping the results to a single Data Label in a table and sorting on the Data Label column, the sort order is reversed after upgrading to K2 4.7. When selecting to sort on Ascending, the biggest value will display first instead of the smallest. When selecting to sort on Descending, the smallest value will display first instead of the biggest.
 

Cause
Performance enhancements changed the looping logic, so that each value in the list got assigned to the source, overwriting it each time. This resulted in the data label always ending up with the last value in the list.

Resolution

  1. Ensure you have K2 4.7 installed.
  2. Install the K2 4.7 February 2017 Cumulative Update.
  3. Get the K2 4.7 February 2017 Cumulative Update FP8 from Regional Support.
  4. Install the K2 4.7 February 2017 Cumulative Update FP8 to apply the fix.

 


0 replies

Be the first to reply!

Reply