Looping - Generate More Record
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 Orchestration > Looping - Generate More Record




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

    Looping - Generate More Record  
Luca


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


 
09-23-04 02:56 AM

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?





[ Post a follow-up to this message ]



    RE: Looping - Generate More Record  
Ramkumar


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


 
09-23-04 02:56 AM

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?
>





[ Post a follow-up to this message ]



    Re: Looping - Generate More Record  
Devdutt Patnaik


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


 
09-23-04 02:56 AM

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?







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 11:48 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