Select to view content in your preferred language

Flex 3.2 Attribute Table Sort Order

2186
2
Jump to solution
04-18-2013 05:55 AM
MattSiple
Deactivated User
Hello,

I am using Flex 3.2. I have users want to sort a column by the attribute field value? (I know how to sort the viewable columns but that is not what I am having trouble with. What I am trying to do is sort a column by field value.)


Thanks in advance for any pointers or tips.
-matt
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
ScottMcGee
Regular Contributor
This is easy to do - just click the column header (i.e., First Name, Last Name, etc.) to sort the records for the field that you click. Click once and the records are sorted from A-Z. Click again and they are sorted from Z-A.

By the way, in your attached graphic file, it shows last names in the First Name field, and first names in the Last Name field. Is it that way in the actual DB, or is your screenshot just a test DB?

View solution in original post

0 Kudos
2 Replies
ScottMcGee
Regular Contributor
This is easy to do - just click the column header (i.e., First Name, Last Name, etc.) to sort the records for the field that you click. Click once and the records are sorted from A-Z. Click again and they are sorted from Z-A.

By the way, in your attached graphic file, it shows last names in the First Name field, and first names in the Last Name field. Is it that way in the actual DB, or is your screenshot just a test DB?
0 Kudos
MattSiple
Deactivated User
This is easy to do - just click the column header (i.e., First Name, Last Name, etc.) to sort the records for the field that you click. Click once and the records are sorted from A-Z. Click again and they are sorted from Z-A.

By the way, in your attached graphic file, it shows last names in the First Name field, and first names in the Last Name field. Is it that way in the actual DB, or is your screenshot just a test DB?


I feel very silly now. I was thoroughly confused because I thought that was default behavior and it didn't seem to work.  However, after I read your post I went back in and tried it again on a simple table (15 rows). It worked just as expected. Then I realized the table I was attempting to "sort" had about 50K un-indexed rows.......<hanging head in shame>

(And yes, the attached file was a "dummy" table. I had attached it with code and a big long explanation, then realized it was getting too long and rewrote it. ( I have been told at times I can be a little verbose...) I forgot to unattach the file.... It has just been that kind of week I guess.)

Any way, thanks for the help. I would probably still be scratching my head if you hadn't confirmed that it actually does work.
-matt
0 Kudos