在BizTalk Map中为元素设置默认值。 [英] Set a default value for an element in BizTalk Map.

查看:174
本文介绍了在BizTalk Map中为元素设置默认值。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


HI All,

HI All,

我在BizTalk地图中有一个要求,其中

I have a requirement in BizTalk map, where

1.我将一些元素从源模式映射到目标模式,其中值将根据某些条件从源模式中的相同元素分配给目标模式的不同元素。这意味着我的Source元素循环,基于一些id我已经获取数据并将其填充到目标模式中的平面结构。

1.I will map some elements from source schema to destination schema, where the values will be assigned to destination schema's different elements from the same elements in source schema based on some condition. That means my Source element loops, based on some id i have fetch the data and fill it to the flat structure in the destination schema.

2.如果这些值未分配,我需要发送一些默认值(N / A)。

2.If those values are not assigned, i need to send some default value (N/A).


  1. 我的地图不是一对一的,所以我可以使用脚本functoid并发送默认值值,最重要的是目标模式是一个平面文件,在源模式中我必须循环很多。

所以任何机构都可以给我一些关于"如果没有映射任何内容,如何在目标模式中为元素设置默认值"的建议使用BizTalk Map /模式中的一些设置。

so can any body give me some suggestion about "How to set a Default value to a Element in Destination schema if nothing is mapped" using BizTalk Map/some setting in schema.

我已经尝试的是,我为属性设置了值'N / A'的所有元素打开了目标模式 - > "默认值"在属性选项卡中有,但是当没有映射时,默认值不会到来。相反,节点本身不会在输出文件中创建。

What i have already tried is, I Opened the destination schema for all the elements i have set the value 'N/A' to a property -> "DefaultValue" which was there in the property tab but when nothing is mapped the default value is not coming. Instead the node itself is not created in the Output file.

请参阅下面的地图以便更好地理解

Pls see the Map below for a good understanding

推荐答案

在mapper中,如果单击目标模式中的元素,则在该元素的属性中在底部,您可以为该字段设置默认值。如果yuor map将某些内容映射到该字段,则会被覆盖。

Inside the mapper, if you click on an element in the destination schema, then in the properties for this element at the bottom, you can set a defaullt value for that field. In case yuor map maps something to the field, it gets overwritten.


这篇关于在BizTalk Map中为元素设置默认值。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆