Possible to provide ordering in grids similar to what is available in Appian Designer?

Is it possible to provide ordering in grids similar to what is available in Appian Designer?

OriginalPostID-191490

OriginalPostID-191490

  Discussion posts and replies are publicly visible

Parents
  • Here is a rule I wrote up quickly, which I called swapElementInArray(). It takes in three arguments: array (any type), index1 (int), index2 (int). It will take in the given array, and swap the elements at the two indexes, and then return the new array.

    with(
    local!element1: ri!array[ri!index1],
    local!element2: ri!array[ri!index2],
    local!indexArray: {ri!index1,ri!index2},
    updatearray(
    ri!array,
    local!indexArray,
    {local!element2,local!element1}
    )
    )
Reply
  • Here is a rule I wrote up quickly, which I called swapElementInArray(). It takes in three arguments: array (any type), index1 (int), index2 (int). It will take in the given array, and swap the elements at the two indexes, and then return the new array.

    with(
    local!element1: ri!array[ri!index1],
    local!element2: ri!array[ri!index2],
    local!indexArray: {ri!index1,ri!index2},
    updatearray(
    ri!array,
    local!indexArray,
    {local!element2,local!element1}
    )
    )
Children
No Data