cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Default value in receiving element

glenn_karlsson2
Participant
0 Likes
610

Hi all,

I have a need to map to a structure which have a "tagname" inside the element.

I map for example a phone number to an element and the receiving value should be "TelephoneNumber = 0345335454"

My first thought was to create a phone number datatype with two sub elements, like Tag and Value and in the data type definition somehow default the Tag value to "TelephoneNumber = " so that i didn´t have to map it at all in the message mapping.

Is that even possible?

Or are there any other ways to do it? I would like to be able to not have the need for mapping a value in message mapping (not even a constant), but use a default from the datatype.

kind regards,

Glenn

View Entire Topic
markangelo_dihiansan
Active Contributor
0 Likes

Hello,

I have a need to map to a structure which have a "tagname" inside the element.

I map for example a phone number to an element and the receiving value should be "TelephoneNumber = 0345335454"

I think you are referring to the attribute of an element e.g


<elementName telephoneNumber=""/>

Here, elementName is the element while telephoneNumber is the attribute. You can create this using a datatype called elementName and then press ctrlshifta to add an attribute, alternatively you can just create the add icon and then choose attribute.

somehow default the Tag value to "TelephoneNumber = " so that i didn´t have to map it at all in the message mapping.

Not sure what you meant here, but if you don't use it in the mapping, then it will default to TelephoneNumber = "". Please clarify.

Hope this helps,

Mark