Upvote 1

Sorting data in Data List from A-Z then switch it from Z-A by clicking the same area?

Answered Kevin 7 years ago

Hi -

Is it possible to sort something ascending order then switch it to descending order by clicking the same area in a data grid? I'm trying to make it so that this occurs when I click on the Column name in a Data List.

I can make it go one or the other, but I can't figure out how to alternate. I do not have room in my table to add two buttons like the example in https://www.justinmind.com/support/prototyping-sortable-columns-for-your-data-list/.

Please help -- I really need this for my occupation.

Thank you!

Kevin

Replies (1)
photo
1

Hi Kevin,


You can create a variable that will detect if the data list has already been sorted. Then, create another event that will sort the data list from Z-A with a condition that will detect if the variable is true or not.


Best,

Danielle

photo
1

And this can be done with a data master?

photo
1

What would be example logic of the second event? Im trying to figure that part out. My variable for the first sort is called Ascending.. data master DM1. Thanks, sorry I am new to this.

photo
1

Hi Kevin,


This example should help: https://www.dropbox.com/s/4wnkxzfztxtdx0u/Sort.vp?dl=0


Best,

Danielle

photo
Leave a Comment
 
Attach a file