Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Order data in a table buffered View
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00246473
Message ID:
00246477
Views:
13
>>>I just found out one may not index a table buffered View. I need to be able to reoder data currently in a view without having to requery the back-end because the user may have made 1 or 2 changes but what to view records in a different order before taking the next action.
>>>
>>>SET ORDER TO needs the views to have been indexed first. Buffered tables may not be index.
>>>
>>>Any ideas how to get round this?
>>>
>>>Thanks
>>>
>>>Mathias
>>
>>Could you SELECT .. ORDER BY the data from the view into a temporary cursor. Then use this to display the records to the user in whatever order. Revert back to the buffered view when you actually need to update.
>
>
>Thank you.
>
>Mathias

Mathais,

This is from memory, but if you make the buffering on your view Table Buffering you can actually INDEX ON and create tags for the file. Youcanthen turn buffering back to its original value and the tags will still be accesible by SET ORDER TO.

HTH
regards

Ian
Previous
Reply
Map
View

Click here to load this message in the networking platform