|
22.10.2013, 17:21 | #1 |
Участник
|
AX 2009 services - update operation
Hi guys,
I have a problem with AX web service when I'm using update operation. This is my scenario: My query is based on two tables - parent (TestServiceHeader ) an child (TestServiceLine). Only parent datasource can be updated. (datasource property Update = Yes). In order to use update service operation, I have to use read operation first. When I execute read operation AX returns instances for each tables (Ax...class objects) which are parts of the query. When I try to update TestServiceHeader table AX throws an exception. For this reason the instance of TestServiceLine has beeen set to null - red bordered row. Is there any way to do that (without set to null child datasource)? As you can see on the screenshot I want to update only header table. Thanks, ist |
|
23.10.2013, 05:51 | #2 |
Участник
|
Hi ist,
I believe TestServiceLine also has a property 'action'. Цитата:
When I try to update TestServiceHeader table AX throws an exception
Rgds, Alex
__________________
AxAssist 2012 - Productivity Tool for Dynamics AX 2012/2009/4.0/3.0 |
|
23.10.2013, 11:58 | #3 |
Участник
|
Hi Alex,
The problem is the xml message I mean. I have made screenshots. 1. The child table class instance is set to null 2. The child table class instance is not set to null. The second case have TestServiceLine section <TestServiceLine class="entity"> without action. The exception is: I found a bunch of examples regarding AIF update operation which updates the parent table only, and without set child instances to null. I can't run this examples without mentioned exception. Regards, |
|
|
|