XMLPort: export fields from different tables indenta
Hello,
I need to export a XML file with data from two tables but as if it was from one of them. The reason is that target system of the XML, the fields are in only one table.
For example I have the table 18 - "Customer" and an extra table 50000-"Customer extended properties" (1-1).
I want the resulting XML document not to show the name of the 50000 table. How could I do?
Thanks very much!
Example:
<CUSTOMER>
<NAME>Client 1</NAME>
<EXTRA_PROPERTIES>
<PROPERTY_1>Property1</PROPERTY_1>
</EXTRA_PROPERTIES>
</CUSTOMER>
I would like the tags of EXTRA_PROPERTIES to dissappear and the PROPERTY_1 tag to be at the same level as <NAME>, so it would look like:
<CUSTOMER>
<NAME>Client 1</NAME>
<PROPERTY_1>Property1</PROPERTY_1>
</EXTRA_PROPERTIES>
</CUSTOMER>
Is it Posible?
I need to export a XML file with data from two tables but as if it was from one of them. The reason is that target system of the XML, the fields are in only one table.
For example I have the table 18 - "Customer" and an extra table 50000-"Customer extended properties" (1-1).
I want the resulting XML document not to show the name of the 50000 table. How could I do?
Thanks very much!
Example:
<CUSTOMER>
<NAME>Client 1</NAME>
<EXTRA_PROPERTIES>
<PROPERTY_1>Property1</PROPERTY_1>
</EXTRA_PROPERTIES>
</CUSTOMER>
I would like the tags of EXTRA_PROPERTIES to dissappear and the PROPERTY_1 tag to be at the same level as <NAME>, so it would look like:
<CUSTOMER>
<NAME>Client 1</NAME>
<PROPERTY_1>Property1</PROPERTY_1>
</EXTRA_PROPERTIES>
</CUSTOMER>
Is it Posible?
0
Answers
-
if it's a 1-1 relation, remove your intended record, and just fetch it in code.
Just use a var in your exportfields and fill it in code.0 -
Thanks Sog, you are right: it should be done by code.
For example in the OnAfterGetRecord of the Customer dataitem I can put something like:
recCustomerProperties.get(cusotmer."No.");
txtProperty1 := recCustomerProperties."Property 1";
...
and add a variable PROPERTY 1, with the Data Source = txtProperty1.
Thank you.0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K 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
- 611 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 253 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions