Basic? Map Question (repeating on left, flat on right)

Home Page Forums BizTalk 2004 – BizTalk 2010 Basic? Map Question (repeating on left, flat on right)

Viewing 1 reply thread
  • Author
    Posts
    • #17808

      Hello All,

      I have a map. The schema on the left has a repeating node, where the node has two attributes, say "att1" and "att2". Keep in mind that this node only appears once on the left, it just happens to be repeatable. The schema on the right is flat, a bunch of nodes at the same level. I need to map the att2 values to the nodes on the right, but their location is dependant on att1. That is:

      On the left
      ===========
      <base>
      <foo att1="mostfavorite" att2="apple"/>
      </base>
      <base>
      <foo att1="leastfavorite" att2="pear"/>
      </base>

      and I need on right
      ===================
      <loveit>apple</loveit>
      <hateit>pear</hateit>

      The <loveit> node gets populated with the att2 in <foo> where att1="mostfavorite", and similarly with leastfavorite.

      Seems simple enough. I tried a table looping functoid and I can gather up the values, but I can't figure out how to get them into their appropriate destination nodes.

      Any help would be helpful. Details appreciated.

      Thanks,

      Chris

    • #17809

      Chris,

      if att1 = "mostfavorite" them map att2 to <loveit>

      if att1 = "leastfavorite" them map att2 to <hateit>

      use the value mapper and logical test like I showed you earlier

       – wa
       

       

Viewing 1 reply thread
  • The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.