Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CursorAdaptor / XMLAdaptor
Message
From
07/08/2003 02:30:47
 
 
To
06/08/2003 03:54:20
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00816919
Message ID:
00817575
Views:
27
Aleksey,

Reconfigured the loCA object to send updates via ADODB.Command object and (after a few other twiddles) it works like a charm.

Thanks

>
>Hi Jeff,
>
>You are still not specific. :-) I have no idea how the CA subclass is configured. Could you translate .VCX class definition into .PRG class definition and post it here?
>
>Looks like something is wrong with loXA.*DataSource property.
>
>To apply changes, ApplyDiffgram method attaches a new cursor to loCA and then calls TABLEUPDATE(.T.) internally. I guess loCA is configured to send updates via ADODB.Recordset object. This isn't going to work because the new cursor is not associated with any ADODB.Recordset object. You should try to configure loCA object to send updates via ADODB.Command object.
>
>BTW, at the time when ApplyDiffgram is called, the loCA still has the original cursor attached. That cursor is closed by CursorAdapter when the new cursor is attached. Usually, when CursorAdapter closes ADO based cursor, it also closes ADODB.Recordset associated with the cursor. Usually means - the ADODB.Recordset is closed if the cursor was created by CursorFill method, it was never detached from CursorAdapter object and it wasn't reopened AGAIN in another work area.
>
>Thanks,
>Aleksey.
- Jeff
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform