Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The approach you suggest, where you do the transform and then use a .NET assembly to replace IDs with descriptions, should work for relatively small messages but you'll have problems with larger messages.</p> <p>Another option is to create a multi-part message that contains your original type, plus a new type. The new type is one you create that you load with the name-value pairs before you transform. So you now have two messages - Y (your message) and X (the message that contains the name-value pairs).</p> <p>Take a copy of your existing map in case it breaks, then modify the transform shape so that it accepts both types (type Y and type X) - the order is not important.</p> <p>In your map - at the places where you need to perform the lookup, add a scripting functoid and set it to <em>Inline XSLT</em>. </p> <p>In the inline XSLT add your node name, followed by an <strong>xsl:value-of select...</strong> element. Put an xpath expression into the select statement that looks up the ID and selects the value. A simple expression could be something like <strong>/Root/Lookups[@id="12345"]/</strong> - but of course your expression will be different. You can get an idea of how to address the message part by clicking the node that holds the name-value pairs and select the <em>Instance XPath</em> in the properties filed.</p> <p>It's going to take some practice if you are not familiar with XPath or namespaces, etc - but when it works, it will be fast and will work seamlessly, and you'll have less code to maintain.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload