BizTalk Server General - How do I auto-populate a missing node?

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server General > March 2004 > How do I auto-populate a missing node?





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 How do I auto-populate a missing node?
Cris Williams

2004-02-24, 4:36 am

Is there a way, using BizTalk Mapper or any other method, to
auto-populate a missing node in the source XML?

For example, if <my_tag>1</my_tag> is missing, I'd like to be able to
easily insert that rather than have my AIC explode.

Trying to get around a recompile because this band-aid would be a
temporary work-around.

Thanks in advance for the assistance.

Cris
Anup Shah [MSFT]

2004-02-25, 9:44 am

Hello Cris

You cannot auto-populate an entire node, however youou can populate any
outbound fields in the Biztlak Mapper, by using the Scripting Functoid. Just
Map the scripting functoid to the outbound field only.
You can then use the scripting function populate the field or if it is a
constant value you want that field to hold, then click on the outbound field
name, then click on the 'Values' toolbar at the bottom of the mapper screen
and specify a "Destination constant value"

Kind regards

Anup Shah
Biztalk Support Team - EMEA

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

"Cris Williams" <criswilliams@yahoo.com> wrote in message
news:7f7e27bc.0402240916.11b851ff@posting.google.com...
> Is there a way, using BizTalk Mapper or any other method, to
> auto-populate a missing node in the source XML?
>
> For example, if <my_tag>1</my_tag> is missing, I'd like to be able to
> easily insert that rather than have my AIC explode.
>
> Trying to get around a recompile because this band-aid would be a
> temporary work-around.
>
> Thanks in advance for the assistance.
>
> Cris



Cris Williams

2004-02-26, 10:35 am

I think what you are saying is to use a Scripting Functoid straight to
the source field. We need to do that Only when the source field does
not exist.



"Anup Shah [MSFT]" <anupshah@online.microsoft.com> wrote in message news:<eJQtBF5#DHA.1452@TK2MSFTNGP09.phx.gbl>...[color=darkred]
> Hello Cris
>
> You cannot auto-populate an entire node, however youou can populate any
> outbound fields in the Biztlak Mapper, by using the Scripting Functoid. Just
> Map the scripting functoid to the outbound field only.
> You can then use the scripting function populate the field or if it is a
> constant value you want that field to hold, then click on the outbound field
> name, then click on the 'Values' toolbar at the bottom of the mapper screen
> and specify a "Destination constant value"
>
> Kind regards
>
> Anup Shah
> Biztalk Support Team - EMEA
>
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
>
> "Cris Williams" <criswilliams@yahoo.com> wrote in message
> news:7f7e27bc.0402240916.11b851ff@posting.google.com...
Nick Malik

2004-02-26, 10:35 am

no, he said what he meant... if you want to auto-populate a node that
doesn't get populated in your destination schema, set a functioid to point
only to the DESTINATION field. Since AICs perform after mapping, this would
take care of some issues.

Is this not working for you?
--- Nick

"Cris Williams" <criswilliams@yahoo.com> wrote in message
news:7f7e27bc.0402260716.2b770eb5@posting.google.com...
> I think what you are saying is to use a Scripting Functoid straight to
> the source field. We need to do that Only when the source field does
> not exist.
>
>
>
> "Anup Shah [MSFT]" <anupshah@online.microsoft.com> wrote in message

news:<eJQtBF5#DHA.1452@TK2MSFTNGP09.phx.gbl>...[color=darkred]
Just[color=darkred]
field[color=darkred]
screen[color=darkred]


Jan Eliasen

2004-03-18, 1:58 pm

On 26 Feb 2004 07:16:02 -0800, criswilliams@yahoo.com (Cris Williams)
wrote:

Hi

Use an "exists"-functoid on the source-field you are not sure exists.
Connect it one value mappening-functoid for each destination-field you
want to populate. Let the second parameter for each value mappening
functoid be the value to autopopulate it with.

[color=darkred]
>I think what you are saying is to use a Scripting Functoid straight to
>the source field. We need to do that Only when the source field does
>not exist.
>
>
>
>"Anup Shah [MSFT]" <anupshah@online.microsoft.com> wrote in message news:<eJQtBF5#DHA.1452@TK2MSFTNGP09.phx.gbl>...

--
Jan Eliasen, representing himself and not the company he works for.
MCP in Microsoft BizTalk Server
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com