How to map one field to one of many fields dependent of values in the input file
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 > How to map one field to one of many fields dependent of values in the input file




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

    How to map one field to one of many fields dependent of values in the input file  
Magnus Eek


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


 
10-18-04 07:50 AM

Hi there !

I have an input-XML that contains one tag with two
attibutes.
It look like this.

<InputXML>
<TESTTAG Code="A" Value="Value" />
</InputXML>


The Code could be A or B


The output-XML contains two tags with one attribute each.

<OutputXML>
<ATAG Value="Value" />
<BTAG Value="Value" />
</OutputXML>

Dependent of the Code (A or B) the i want the output-XMl
to contain either ATAG or BTaG with the corresponding
value.

<OutputXML>
<ATAG Value="Value" />
</OutputXML>

or

<OutputXML>
<BTAG Value="Value" />
</OutputXML>



I have no problems to get the value to the right tag (I
use a "Equal" and "ValueMapping" functiod fore each code).
The problem is to get rid of the tag with no value.

The result I get is.

<OutputXML>
<ATAG Value="Value" />
<BTAG />
</OutputXML>


Does anyone know how to get rid of the BTAG ??????

/ Magnus Eek






[ Post a follow-up to this message ]



    RE: How to map one field to one of many fields dependent of values in the input file  
Tan Bao Nguyen


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


 
10-21-04 10:50 PM

Magnus,

Link the Equal functoids to their respective destination field.  If the
output of the Equal functoid is false then the field won't get created.

Regards,
Tan Nguyen
Microsoft BizTalk Server

This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------[vbcol=seagreen] 
in the input file[vbcol=seagreen] 






[ Post a follow-up to this message ]



    RE: How to map one field to one of many fields dependent of values in the input file  
Magnus


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


 
10-22-04 07:46 AM

Thank you !

It works
>-----Original Message-----
>Magnus,
>
>Link the Equal functoids to their respective destination
field.  If the
>output of the Equal functoid is false then the field
won't get created.
>
>Regards,
>Tan Nguyen
>Microsoft BizTalk Server
>
>This posting is provided "AS IS" with no warranties, and
confers no rights.
>
>-------------------- 
<anonymous@discussions.microsoft.com>[vbcol=seagreen] 
<anonymous@discussions.microsoft.com>[vbcol=seagreen] 
dependent of values[vbcol=seagreen]
>in the input file 
V5.50.4910.0300[vbcol=seagreen] 
microsoft.public.biztalk.tools:4064[vbcol=seagreen] 
each.[vbcol=seagreen] 
XMl[vbcol=seagreen] 
(I[vbcol=seagreen] 
code).[vbcol=seagreen] 
>
>.
>





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 12:34 PM.      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