Appian Community and Appian Academy are being upgraded. As a part of the upgrade, Appian Community is currently in read-only mode, and user registration is disabled until August 3. We apologize for any inconvenience this may cause, but a more secure, stable, and performant Community experience is coming soon!

The new Appian Community launches August 3, followed by Appian Academy on August 7. During the migration, Appian Community Edition, Appian Academy, Documentation, Certifications, Instructor-led Customer Training, Partner Sales Training & Accreditation, and Forum (for Appian Partners and Customers only) will remain available.

Sorting not working

Hi ,

In below code default sorting is not working on  UI interface. 

a!gridTextColumn(
label: "Served By",
field: "servedBy",
data:
a!applyComponents(
function: rule!getUserName(_),
array: ri!subset.data.servedBy
)

)

In this we are setting local.paginInfo in load and passing same on ein with() to this dataset subset. Then further this dataset i am passing to another rule where i am keeping grid section. 

After clicking on header column sorting should be work but its not working. Tried lot but not found feasible solution.

  Discussion posts and replies are publicly visible

Parents Reply Children
  • Ok - lets try some basic stuff to see where the problem might lie.

    change your data line so that it just uses a standard display using index

    data: index(ri!subset.data, "servedBy", "Data Not Found") 

    If the information displays correctly and sorts correctly on this combination then it would suggest an issue in your rule!getUserName. 

    If data doesn't show (you get the Data Not Found message) , then are you sure the input RI is being passed a datasubset ?

    Show what values you are passing into via the test inputs - that might help also.