Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Multiple sort orders on views
Message
From
07/10/1997 16:37:48
 
 
To
07/10/1997 16:35:42
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00053592
Message ID:
00053597
Views:
24
>>>How can I have multiple sort orders on my view? I have a grid on a form, which is view, where I need to offer the client a choice of selecting multiple sort orders.
>>>
>>>As for as I know, we can only have one sort order per view. Does this mean, I need to create one view per sort order and switch view when the user switch the sort order?
>>
>>If your view is reasonably small, you can create different index tags which will allow multiple data presentation in grid.
>
>My view is 400 records. But, how can I create multiple index tags for a view. In the CREATE VIEW definition, there is only one ORDER clause possible.

When view is created, handle it as a table:
Select View1
Index on ... tag ...
and so on. When it's going to changing sort:
Select View1
Set Order to tag ...
Thisform.Grid1.refresh
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform