Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CursorAdapter and Oracle Tables
Message
From
15/09/2006 11:57:50
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Oracle
Miscellaneous
Thread ID:
01154130
Message ID:
01154161
Views:
13
I go into the cursor itself and change the value of one of the fields, then move off of the record or execute a TABLEUPDATE(.t., .t.) in the command window. I have set a "SET STEP ON" in the init of the test form. This test works correctly with VFP tables.


I have other code available to me which creates custom views that are dependant on the database container. These views update the source tables correctly as well when changing the values in the cursor.

I want to convert my views over to cursoradapters instead.


I have tested a manual update of one of the Oracle records and I do have the correct access rights.



>?
>Can you post the code where you updating CA?
>
>>TABLEUPDATE(.t., .t.) results in .T.
>>AERROR(a_Error) results is 0 (no error)
>>
>>Executing the code again shows that the record has not been updated.
>>
>>
>>
>>>>I have a cursoradapter that connects to my Oracle datasource and pulls the data into a cursor in a private data session. This part works fine. For some reason, it will not update the tables in Oracle.
>>>>
>>>>I have assigned the following properties in the INIT of the cursoradapter:
>>>>
>>>>Tables
>>>>KeyFieldList
>>>>UpdatableFieldList
>>>>UpdateNameList
>>>>
>>>>SendUpdates, Allow... = .T.
>>>>UseDeDataSource = .T.
>>>>
>>>>I supply the data environment object. The data environment object connects to the datasource perfectly.
>>>>
>>>>DataSource = ODBC
>>>>Connection is a valid connection string...
>>>>
>>>>I have tested my cursoradapter object with VFP tables and it works fine; the fields update properly in the source table.
>>>>
>>>>Where am I going wrong?
>>>
>>>And what is the result of TableUpdate?
>>>And if it is .f. what AERROR() gives you as info?
Gordon de Rouyan
DC&G Consulting
Edmonton, Alberta
Email: derouyag@shaw.ca
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform