|
Home > Archive > BizTalk Server General > March 2004 > Mapper: const input to looping functoid
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 |
Mapper: const input to looping functoid
|
|
| Justin Bartels 2004-03-18, 1:58 pm |
| Hello,
I am trying to create a map in BizTalk mapper. I have a
destination element that needs to be looped exactly 29
times. The destination element count has absolutely
nothing to do with the source document (there is no
element in my source that loops 29 times, the destination
elements contain many pre-defined constant values which
are different for each iteration and sometimes take
source elements as input, other times only constants). I
cannot change the destination document definition since
this is an EDI document spec. My initial thought on how
to handle this was to use a looping functoid, but I don't
seem to be able to accept inputs to the looping functiod
from other functoids (only from source elements). Is
there any way to set up a while loop within the mapper?
| |
| Everett Yang 2004-03-18, 1:58 pm |
| Loop functoid basically is a for-each loop in XSLT. The loop is based on
an inbound element or attribute. You cannot assign a fixed value to the
looping functoid.
Sincerely,
Everett Yang
DSI - Microsoft BizTalk Server
This posting is provided “AS IS” with no warranties, and confers no rights.
Subscribe at
http://support.microsoft.com/defaul...msdn/nospam.asp
&SD=msdn
| |
| Matt Cable 2004-03-18, 1:58 pm |
| What version of BizTalk Server are you using? I can think of a couple ways
to do that in the 2004 Mapper, but in 2002/2000, I have had to manually code
the XSLT in the map to do that sort of thing. The only non-coding option
would to be an interim map that would have 29 records in it, then you could
use the Looping functoid in the final map against those records.
- Matt Cable
"Justin Bartels" <smisa@spam-someone-else.net> wrote in message
news:c28001c40855$5495c3c0$a101280a@phx.gbl...
> Hello,
>
> I am trying to create a map in BizTalk mapper. I have a
> destination element that needs to be looped exactly 29
> times. The destination element count has absolutely
> nothing to do with the source document (there is no
> element in my source that loops 29 times, the destination
> elements contain many pre-defined constant values which
> are different for each iteration and sometimes take
> source elements as input, other times only constants). I
> cannot change the destination document definition since
> this is an EDI document spec. My initial thought on how
> to handle this was to use a looping functoid, but I don't
> seem to be able to accept inputs to the looping functiod
> from other functoids (only from source elements). Is
> there any way to set up a while loop within the mapper?
|
|
|
|
|