Please HELP - Converting FLAT schema to Hirerachical Schema
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > BizTalk Server > BizTalk Server Tools > Please HELP - Converting FLAT schema to Hirerachical Schema




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Please HELP - Converting FLAT schema to Hirerachical Schema  
Bhavin Sanghvi


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
06-21-04 04:10 AM

How can I achive this using BizTalk 2004 mapper.

source schema:

<ORDER>
<ID/>
<DATE/>
<NAME/>
<ITEMNO/>
<ITEMNAME/>
<QTY/>
</ORDER>

DESTINATION Schema:

<ORDER>
<ID/>
<DATE/>
<NAME/>
<ORDERDETAIL>
<ITEMNO/>
<ITEMNAME/>
<QTY/>
</ORDERDETAIL>
</ORDER>

Condition is ... all the detail items with same header MUST come under one
HEADER ELEMENT... At the moment what I get is ...

If there are three record in source ... I get three header with one detail
in each. and what I want is ... if all the three records have same header
then output should have one header and three details..


I hope I have explained clearly... and I want to use BizTalk 2004 mapper to
achieve this.

Any help appriciated....

Thanks. Bhavin








[ Post a follow-up to this message ]



    RE: Please HELP - Converting FLAT schema to Hirerachical Schema  
Nikolai @ intergen.co.nz


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
06-26-04 03:53 PM

You would probably want to look at using a custom dis assembler component.

The default output for SQL queries using FOR XML will create and output like
 this and I am pretty sure you can't use any of the mapping tools to sort it
 out.

Have a look at the SDK and Giles posts on writing custom pipeline components
.

http://weblogs.asp.net/gzunino/arch.../13/154819.aspx
http://weblogs.asp.net/gzunino/arch.../14/155763.aspx
http://weblogs.asp.net/gzunino/arch.../14/155772.aspx


"Bhavin Sanghvi" wrote:

> How can I achive this using BizTalk 2004 mapper.
>
> source schema:
>
> <ORDER>
>     <ID/>
>     <DATE/>
>     <NAME/>
>     <ITEMNO/>
>     <ITEMNAME/>
>     <QTY/>
> </ORDER>
>
> DESTINATION Schema:
>
> <ORDER>
>     <ID/>
>     <DATE/>
>     <NAME/>
>     <ORDERDETAIL>
>         <ITEMNO/>
>         <ITEMNAME/>
>         <QTY/>
>     </ORDERDETAIL>
> </ORDER>
>
> Condition is ... all the detail items with same header MUST come under one
> HEADER ELEMENT... At the moment what I get is ...
>
> If there are three record in source ... I get three header with one detail
> in each. and what I want is ... if all the three records have same header
> then output should have one header and three details..
>
>
> I hope I have explained clearly... and I want to use BizTalk 2004 mapper t
o
> achieve this.
>
> Any help appriciated....
>
> Thanks. Bhavin
>
>
>
>





[ Post a follow-up to this message ]



    RE: Please HELP - Converting FLAT schema to Hirerachical Schema  
Tatyana Yakushev [MSFT]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
06-30-04 10:54 PM

You have to use scripting functoid and write XSLT yourself.

Thanks,
Tatyana
--------------------
>From: "Bhavin Sanghvi" <sanghvibk@hotmail.com>
>References: <O5vCAKfVEHA.1152@TK2MSFTNGP09.phx.gbl>
>Subject: Please HELP - Converting FLAT schema to Hirerachical Schema
>Date: Sun, 20 Jun 2004 17:28:46 +0530
>Lines: 43
>X-Priority: 3
>X-MSMail-Priority: Normal
>X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
>Message-ID: <Omk#t3rVEHA.2544@TK2MSFTNGP10.phx.gbl>
>Newsgroups: microsoft.public.biztalk.framework,microsoft.public.biztalk.orc
hestration,microsoft.public.biztalk.sdk,microsoft.public.biztalk.tools
>NNTP-Posting-Host: 151-211-187-203.cable-client.iqara.net 203.187.211.151
>Path: cpmsftngxa10.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MS
FTNGP10.phx.gbl
>Xref: cpmsftngxa10.phx.gbl microsoft.public.biztalk.orchestration:6633 microsoft.pu
blic.biztalk.sdk:2336 microsoft.public.biztalk.tools:3790
microsoft.public.biztalk.framework:3006
>X-Tomcat-NG: microsoft.public.biztalk.tools
>
>How can I achive this using BizTalk 2004 mapper.
>
>source schema:
>
><ORDER>
>    <ID/>
>    <DATE/>
>    <NAME/>
>    <ITEMNO/>
>    <ITEMNAME/>
>    <QTY/>
></ORDER>
>
>DESTINATION Schema:
>
><ORDER>
>    <ID/>
>    <DATE/>
>    <NAME/>
>    <ORDERDETAIL>
>        <ITEMNO/>
>        <ITEMNAME/>
>        <QTY/>
>    </ORDERDETAIL>
></ORDER>
>
>Condition is ... all the detail items with same header MUST come under one
>HEADER ELEMENT... At the moment what I get is ...
>
>If there are three record in source ... I get three header with one detail
>in each. and what I want is ... if all the three records have same header
>then output should have one header and three details..
>
>
>I hope I have explained clearly... and I want to use BizTalk 2004 mapper to
>achieve this.
>
>Any help appriciated....
>
>Thanks. Bhavin
>
>
>
>


--

This posting is provided "AS IS" with no warranties, and confers no rights. 
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

Note:  For the benefit of the community-at-large, all responses to this mess
age are best directed to the newsgroup/thread from which they originated.






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 06:13 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register