Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Updating Data from the Web
Message
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00544742
Message ID:
00545081
Views:
17
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform