Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Incremental Search in Grid
Message
De
13/12/2004 20:32:16
 
 
À
10/12/2004 14:53:58
Information générale
Forum:
Visual FoxPro
Catégorie:
Visual FoxExpress
Versions des environnements
Visual FoxPro:
VFP 5
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
00968094
Message ID:
00968968
Vues:
7
I don't even have VFE 5 installed anywhere to test it, but in later versions of VFE views can be indexed - in fact can have multiple indexes - and the incremental searching is done by setting the SearchIndexTag prop of the field to the tag.

I haven't written an app in 5 years that is table based.

( quite honestly, IMO VFE5 was a beta - very much like VFP 3 and 5. There was a lot wrong with it. VFE6 was a complete framework rewrite - totally different animal. If it were me, I wouldn't use it for a production app. )



>To support nested parent/child/grandchild bizobjs seamlessly, they must all be based on views in VFE5. I eventually remembered that incremental search is not supported with views - mainly because, as you pointed out, the framework code depends on an index, which the view doesn't have (views are typically ORDERed instead).
>
>However, I was able to link in a modified version of the grid.Search method which uses LOCATE instead of SEEK and it works fine for the small number of records I'm dealing with.
>
>There doesn't seem to be any related setting(s) in DBCX for this feature in VFE5.
>
>>You might find nobody at F1 remembers how VFE 5 works either <g>
>>
>>Incremental searching usually depends on an index on UPPER(fieldname)
>>
>>In 6.0+ you need to set a DBCX prop as well, but don't remember in 5.0
>>
>>
>>>Using Visual FoxExpress 5.0
>>>
>>>It's been a while since I last worked with this framework. I'm trying to enable the "keyboard steering" (incremental search) in the List grid of a Data Entry & List form.
>>>
>>>I've set the grid's lSearchGrid property to .T., but no joy. When I try typing while the first column of the grid has focus I just get "dings", as if the column/grid is readonly (which it is but shouldn't matter in this case (?))
>>>
>>>Can anyone remember how to make this work? The 5.x Peer Support forum at F1 is basically non-existent.
>>>
>>>UPDATE - never mind, I worked around it.


Charles Hankey

Though a good deal is too strange to be believed, nothing is too strange to have happened.
- Thomas Hardy

Half the harm that is done in this world is due to people who want to feel important. They don't mean to do harm-- but the harm does not interest them. Or they do not see it, or they justify it because they are absorbed in the endless struggle to think well of themselves.

-- T. S. Eliot
Democracy is two wolves and a sheep voting on what to have for lunch.
Liberty is a well-armed sheep contesting the vote.
- Ben Franklin

Pardon him, Theodotus. He is a barbarian, and thinks that the customs of his tribe and island are the laws of nature.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform