BizTalk Server Orchestration - Looping - Generate More Record

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server Orchestration > September 2004 > Looping - Generate More Record





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Looping - Generate More Record
Luca

2004-09-22, 9:56 pm

hi,
from a mapper i have a number value in a child element and i want to
generate more element how the number value.
Like this ex:

<root>
<Quantity>3</Quantity>
</root>

Transform Mapper
<Transform>
<element></element>
<element></element>
<element></element>

</Transform>
It's possible? how?
Ramkumar

2004-09-22, 9:56 pm

Use inline xslt script to create dynamically records based on the input.Its
found in scripting functiod and opt for inline xslt script.
Thanks
Ramkumar

"Luca" wrote:

> hi,
> from a mapper i have a number value in a child element and i want to
> generate more element how the number value.
> Like this ex:
>
> <root>
> <Quantity>3</Quantity>
> </root>
>
> Transform Mapper
> <Transform>
> <element></element>
> <element></element>
> <element></element>
>
> </Transform>
> It's possible? how?
>

Devdutt Patnaik

2004-09-22, 9:56 pm

This can be achieved by using a scripting functoid of the type "XSLT Call
Template".
1) Pass Quantity as the Parameter.
2) Output <Element></Element>.
3) Decrement Quantity.
4) Make recursive call to the same Template using decremented Quantity, till
Quantity becomes 1.

HTH
Regards
Dev

"Luca" <prollo@libero.it> wrote in message
news:3d9f225e.0409160237.6e3c2927@posting.google.com...
> hi,
> from a mapper i have a number value in a child element and i want to
> generate more element how the number value.
> Like this ex:
>
> <root>
> <Quantity>3</Quantity>
> </root>
>
> Transform Mapper
> <Transform>
> <element></element>
> <element></element>
> <element></element>
>
> </Transform>
> It's possible? how?



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com