Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Saving Data after MoveAllRows
Message
From
08/02/2006 09:44:07
 
 
To
All
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Title:
Saving Data after MoveAllRows
Miscellaneous
Thread ID:
01094627
Message ID:
01094627
Views:
49
I am working on a project that will be updating new customer's from remote data to a "Main" Customer Table.

Both the New and Main customer data are in exactly the same format. I am getting the new customer data succesfully and then moving it to the Main customers empty data set and then trying to save.

Perhaps this is the wrong approach? If so a hard shove in the right direction would be appreciated

I will post some code below to help.
 DSNewCustomers = ONewCustomer.GetAllNewCustomers
 DSCustomers = Me.OCustomerMaster.GetEmptyDataSet(DSCustomers, "RM00101")
 
         Me.OCustomerMaster.MoveAllRows(ONewCustomer, "Customer", "RM00101")
         'This works the data has been moved to DSCustomers from DsNewCustomers

         MsgBox(DSCustomers.HasChanges) ' FALSE
         ' I am guessing that this is why the save returns good but nothing is saved
         Dim result As OakLeaf.MM.Main.Business.mmSaveDataResult = OCustomerMaster.SaveDataSet(DSCustomers, "RM00101", "TEST")
         MsgBox("Result = " & result)
         'Result = 2 which is success however nothing is saved to new table probably because it does not know there are changes?
Next
Reply
Map
View

Click here to load this message in the networking platform