on 02-10-2014 7:07 PM
Hi All,
I'm doing a mapping where the source structure has three elements phone (Home ,Work, mobile) each having occurrence 0..1
I have created the target structure as an attribute Phone with occurrence 0- unbounded.
Please let me know the best way to map this three fields to the attribute. So based upon the input the attribute phone will repeat.
Thank you
Hi Swetha - I don't think you can create attribute as 0..unbounded. Attribute always have two parameters(optional/mandatory).
Please share the target structure.
If you have created an element, just right click on the target element and click on duplicate subtree option then map all your 3 fields directly..
if this is not what you are looking for then please provide your mapping rules..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sorry for the confusion, Phone is the element for which I have created an attribute as "type".(Type will have the values "Home" , "Work" , "Mobile" based upon the input given )
Here is my source and target structure:
Source:
Phone | type="Home" |
Number | |
Phone | type= "Work" |
Number | |
Phone | type= "Cell" |
Number |
Target :
<Phone type="Home">
<Number></Number>
</Phone>
<Phone type= "Work">
<Number></Number>
</Phone>
<Phone type= "Cell">
<Number></Number>
</Phone>
I can duplicate the tree in Data type and can map with all the three elements. But I'm looking for the target Phone to get duplicated at run time based upon the input.
For eg: If I input only Home number. target structure should appear only once. If I input Home and Cell,Target should appear twice with type 'Home" also with type "Cell".
Hope it clears!!
Hi Swetha,
you can duplicate the target attribute Phone three times and map the source elements phone (Home ,Work, mobile) to each target attribute.
regards,
Harish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.