Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Private session, bizobj, buffering
Message
 
À
01/04/2003 01:31:27
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00772276
Message ID:
00772625
Vues:
8
Hi John,

Try saving the current buffer mode of the cursor, then set the buffermode to zero and do the indexing. Then restore the buffer mode. We use this method all the time when dealing with remote views. Here's a sample:
SELECT rv_MyView
lnBufferMode = CURSORGETPROP('Buffering')
INDEX ON MyIndex 
CURSORSETPROP('Buffering',lnBufferMode)
HTH,
Arriyel

>Hi,
>I am trying to develop my vfp app using ntier pattern.
>The design structure is as follow:
>
>DataEntryForm: Private Data Session, Table Buffering
>oBizObj: Default Data Session
>DataAccessObject: Private Data Session, Table Buffering
>PickListForm: Private Data Session, Non-Buffering
>
>DataEntryForm.oBusiness---->oBizObj
>oBizObj.oDataObj---->DataAccessObject
>
>I create my business object in DataEntryForm.Init()
>I have a problem that, if I launch a PickListform from my DataEntryForm and try to INDEX the picklist cursor, VFP return error "Command cannot be issued on a table with cursors in table buffering mode (Error 1579)". I have check the cursor and it is non buffering. It work fine if it launched individually.
>
>After my testing, I found that, if I rem the line to CREATEOBJECT("cBizObj"), then everything will be fine. Any ideas why my cbizobj can effect my PickListForm since they have their own data session?
>
>For your info, Once my BizObj lauched, the only things will be executed are CREATEOJECT("dataaccessobject") and dataaccessobject will USE mytable.
>
>Any ideas?
>
>Thank you
Speak using soft and sweet words in case you have to eat them later.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform