XMLport Problem with the Datasource

Spycoclown
Member Posts: 13
Hallo,
I have a Problem with my Datasource.
I have in the Node Member, my code that fill the Table.
My Problem is if i am at the third Member that is not Maried, the node maritalstatus is zero but the DataSource is still filled with the Information of the Member befor. how can i clear alle the Datasource on every Member that is found?
Gretz
Leo
I have a Problem with my Datasource.
Node Node-Type Source-Type DataSource Occurs member Element Text member ONCE-UNBOUND surname Element Text surname ZERO-ONCE firstname Element Text firstname ZERO-ONCE designation Element Text designation ZERO-ONCE active Element Text active ZERO-ONCE number Element Text number ZERO-ONCE status Element Text status ZERO-ONCE maritalstatus Element Text maritalstatus ZERO-ONCE familystatus Element Text familystatus ZERO-ONCE
I have in the Node Member, my code that fill the Table.
My Problem is if i am at the third Member that is not Maried, the node maritalstatus is zero but the DataSource is still filled with the Information of the Member befor. how can i clear alle the Datasource on every Member that is found?
Gretz
Leo
0
Comments
-
Hi Spycoclown,
did you mean, that all child nodes of the parent node must be cleared before the unbound parent will process again?
If thaths true, i have same problem here!
My unbound parent nodes not has every child node again. Here my example:
<contact>
<firstname>Emma</firstname>
<surename>Stone</surename>
</contact>
<contact>
<firstname>Jack</firstname>
</contact>
In the second import the surename is already filled with "Stone"... did anybody know a solution?
kind regards
Matthias König0 -
yes exactly that problem.
At the moment i just clear(); every datasource after i imported them in to the table.
good way. hope its not the only way.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions