Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem with cursoradapter
Message
De
03/08/2018 12:26:01
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Network:
Windows Server 2012 R2
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01661431
Message ID:
01661434
Vues:
58
>We are working on a foxpro class that let access to a postgreSQL database. We are using cursoradapter, but i have problems when updating data on a selected record. It seems all is workin but when i update data these are not updated and i have no error messages...
>
>If i make the same operation using a database with a remote view on the same tables i have no problems and data are updated...
>
>What did i miss in the cursor adapter ? What can i check ?
>
>Here is the code:
>
> loData = Createobject("DbMngr.DbData")
> loData.DataSource = loHandle.Handle
> loAnag = loData.CaAnag
> loAnag.DataSource = loHandle.Handle
>
> loAnag.SelectCmd = loAnag.SelectCmd + " Where Id = ?loRecord.Id "
> loAnag.CursorFill()
> loAnag.CursorRefresh()
> Gather Name loRecord
> =TableUpdate(.T.,.T.,"crAnag")

Your code doesn't tell much. Maybe it is better that you debug what happens at BeforeUpdate and AfterUpdate. And did you check with aerror()?
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform