Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Oracle varchar in remote view
Message
 
 
À
24/09/2004 19:06:58
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00945603
Message ID:
00945990
Vues:
17
Work with the one in your class from the Command window:

o = newobject('ca_classname', 'classlibname')
o.DataSource = nValidConnectHandle
? o.CursorFill()

if the Cursor fill returns false:

aerror(laError)
disp memo like laError

then post the error results here. Otherwise, browse the returned cursor and make inserts, changes, deletes, whatever. Then:

? TABLEUPDATE(1)

If that returns false, run the aerror lines again and post the error info here.

As for needing SQLCommit() or SQLRollback(), what is the value of:

? SQLGETPROP(nValidConnectHandle, 'Transactions')

If it is set to manual (e.g., =2), go ahead and issue a SQLCommit(). Otherwise, use SQLSetProp to set this to automatic if you do not need transactions.

>In the dataenvironment of the form the cursoradapter:
>tables = 'Generated_id' - yes
>UpdatableFieldList = 'FieldID, LastUsed' - yes
>UpdateNameList = 'FieldID Generated_ID.FieldID, LastUsed Generated_ID.LastUsed' - yes
>KeyFieldList = 'FieldID' - yes
>SendUpdates = .T. - yes
>AllowInsert = .T. - yes
>AllowUpdate = .T. - yes
>AllowDelete = .T. - yes
>DataSourceType = 'ODBC' - yes
>
>In the cursoradapter from the class:
>tables = 'Generated_id' - yes
>UpdatableFieldList = 'FieldID, LastUsed' - yes
>UpdateNameList = 'FieldID Generated_ID.FieldID, LastUsed Generated_ID.LastUsed' - yes
>KeyFieldList = 'FieldID' - yes
>SendUpdates = .T. - yes
>AllowInsert = .T. - yes
>AllowUpdate = .T. - yes
>AllowDelete = .T. - yes
>DataSourceType = 'ODBC' - yes
>
>Unfortunately I still don't know what I am doing wrong.
>
>Do I need to do an sqlcommit for cursoradapters like I do for remote views?
Mark McCasland
Midlothian, TX USA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform