Getchanges problem on expression column

G

Guest

Hi,

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
 
W

WenYuan Wang [MSFT]

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.
 
G

Guest

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
 
W

WenYuan Wang [MSFT]

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
 
W

WenYuan Wang [MSFT]

Hi Bart,

I haven't heard from you two days. Have you resolve the issue now?
If there is anything we can help with, please update here and I will follow
up.I'm glad to work with you.

Have a great weekend,
Sincerely,
Wen Yuan
Microsoft Online Community Support
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top