Sometimes Sorting is Not Working in Task Report

Certified Senior Developer

Hi All,

I have created a task report where my initial sort is task_id in descending and configured in Site .Whenever I load the task report, it shows me the grid in a correct manner with task_id in descending order.

I am also showing a link where I am calling the record action to create a new task.

The task consists of 5 milestone with active chaining and all has back button except the 1st milestone.

When the user clicks the "next" button in 1st milestone then we generate task id by writing in DB.

Not working Scenario : 

From task report, the user clicks the link(create new task link),he completes 1st milestone data & click next ,goes to 2nd milestone.

Then from 2nd milestone if the user goes back and comes to 1st milestone, then user tries to navigate, so they just click the task report tab .

Issues :

1. Now the current task id is not visible in the task report grid

2. The sorting of task_id in task report is totally collapsed. Until this sorting was working properly for task_id in descending.

Note : In Record Action ,I called the process model which has start form since i am using the same PM in separate tab in Site to create task.

I am not getting what is the issue. So could you please help me on this.

Thanks in Advance .

  Discussion posts and replies are publicly visible

Parents
  • The sorting of task_id in task report is totally collapsed.

    It's hard to tell for sure what your task report is doing in the back-end, but based only on your screenshot, it looks as if the "#" column is being evaluated as TEXT, and therefore, sorting correctly (according to TEXT sorting rather than INT sorting).  Remember that TEXT sorts by the first character of a string, then for any ties, resolves the next character (if any), and so-on.  So "9" is highest, then "89", etc.

Reply
  • The sorting of task_id in task report is totally collapsed.

    It's hard to tell for sure what your task report is doing in the back-end, but based only on your screenshot, it looks as if the "#" column is being evaluated as TEXT, and therefore, sorting correctly (according to TEXT sorting rather than INT sorting).  Remember that TEXT sorts by the first character of a string, then for any ties, resolves the next character (if any), and so-on.  So "9" is highest, then "89", etc.

Children