Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Oracle varchar in remote view
Message
 
 
To
24/09/2004 19:06:58
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00945603
Message ID:
00945990
Views:
18
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform