Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Updating Data from the Web
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00544742
Message ID:
00545081
Vues:
21
Try adding the following code to determine what's going wrong:


var oPerson = Server.createobject('odsweb.person');

// Set data format as ADO.
oPerson.SetDataFormat(1);

// Retrieve record
oPerson.GetPerson(2);

// Retrieve the ADO recordset.
var rs = oPerson.GetDataX()

// Update a field. Original value is 'George'
rs.Fields('first').Value = 'Georgie Porgie';

// Send the recordset back to business object.
oPerson.SetDataX(rs);

// Save the changes.
var cerr = oPerson.Save();

// Check to see if everything went well
if cerr < 0
var nerrcnt = oPerson.GetErrorCount()
For i = 1 to nerrcnt
Response.Write(oPerson.GetError(nerrcnt))
Next i
Response.Flush
endif
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform