|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Getchanges problem on expression columnHi,
I have a problem with the GetChanges() method when I use an expression column. The expression is using data from a child relation. When I call Getchanges I got an evaluation expression that the column from my child relation doens't exist. How can I work arround this issue? Thanks Bart Hi Bart,
Did you use DataSet.GetChanges() method to return the rows? I haven't met such issue before. Would you please provide us the exact error message and post some code-snippet for us? Sincerely, Wen Yuan Microsoft Online Community Support ================================================== Get notification to my posts through email? Please refer to http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif ications. Note: The MSDN Managed Newsgroup support offering is for non-urgent issues where an initial response from the community or a Microsoft Support Engineer within 1 business day is acceptable. Please note that each follow up response may take approximately 2 business days as the support professional working with you may need further investigation to reach the most efficient resolution. The offering is not appropriate for situations that require urgent, real-time or phone-based interactions or complex project analysis and dump analysis issues. Issues of this nature are best handled working with a dedicated Microsoft Support Engineer by contacting Microsoft Customer Support Services (CSS) at http://msdn.microsoft.com/subscriptions/support/default.aspx. ================================================== This posting is provided "AS IS" with no warranties, and confers no rights. Hi Wen,
Table1.getChanges() Where Table1 has a child relation to Table2 An expression column in Table1 looks like this: Table.SomeColumn.Expession = 'min(child(NameChildRel).TrekkerID)' Thanks Show quoteHide quote "WenYuan Wang [MSFT]" wrote: > Hi Bart, > > Did you use DataSet.GetChanges() method to return the rows? > I haven't met such issue before. Would you please provide us the exact > error message and post some code-snippet for us? > > Sincerely, > Wen Yuan > Microsoft Online Community Support > ================================================== > Get notification to my posts through email? Please refer to > http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif > ications. > > Note: The MSDN Managed Newsgroup support offering is for non-urgent issues > where an initial response from the community or a Microsoft Support > Engineer within 1 business day is acceptable. Please note that each follow > up response may take approximately 2 business days as the support > professional working with you may need further investigation to reach the > most efficient resolution. The offering is not appropriate for situations > that require urgent, real-time or phone-based interactions or complex > project analysis and dump analysis issues. Issues of this nature are best > handled working with a dedicated Microsoft Support Engineer by contacting > Microsoft Customer Support Services (CSS) at > http://msdn.microsoft.com/subscriptions/support/default.aspx. > ================================================== > This posting is provided "AS IS" with no warranties, and confers no rights. > > Hi Bart,
Thanks for your reply. If you have a Expression Column in table, you should have to use DataSet.getChanges() method rather than DataTable.getChanges() method. This is because, DataTable.getChanges() method will create a new DataTable and add the modified rows into this table. If the row has a Expression Column, the new DataTable will meet an issue. The child table and relation doesn't exist for the new DataTable. However, DataSet.getChanges() method will create new dataset, table and relation. In your scenario, you can use DataSet.getChanges() method to return a DataSet and then get the special table from DataSet by tablename. Please let me know if you still have anything unclear. I'm glad to assist you. Have a great day, Sincerely, Wen Yuan Microsoft Online Community Support
Other interesting topics
Currency Manager
copying an object by value Multiple relation in dataset. Increase Connection\ Command timeout globally RichText in asp.net using an xml file to store a pre-connection value--- client-server app where data is disconnected, but stays fresh Concurrency Problem: Two separate dynamic SQL queries. SqlCommandBuilder.DeriveParameters not working for CLR Stored Procedure. Drivers are not registered |
|||||||||||||||||||||||