Information générale
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
>>>>If I use a de subclass with table buffered views where do I create the indexes?
>>>>
>>>>In the past I've just been using form.load and opening the view, creating the indexes, set buffermode, and then requery.
>>>
>>>I'd do that in de.init - by that time, its objects are created and cursors opened. You may do that in each cursor's .init, if you want to keep it a bit neater.
>>>
>>>Haven't tried it in a subclassed DE, though - this is from old form-embedded DE. But it should behave the same, being the same base class.
>>
>>Thank you!!!
>
>Wait, wait... try it first and tell me whether it works for a subclassed DE or not - I said I haven't tried it, so if you do, let us know whether it works. Please? :)
I cannot make it work. For whatever reason... it appears that the tables are not actually opened during the cursor init or the de init. I placed messageboxes in all of the inits and watched the data session window. The tables were not opened till _after_ the de init.
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement