Hi Everyone, I want to add a couple of elements to the User Area of the Process.SalesOrder XML using the Graphical Mapper. See the User Area below that has the arrow pointing to it. Can you do this using the Graphical Mapper in ION Desk?
Hi Tony,
In graphical mapper has a function call "create-child-element" function in Custom Function template section. I believe you can use this function.
<xsl:element name="{$child-element-name}"> <xsl:value-of select="$child-element-value"/></xsl:element>
Thank you
Thanks for the reply. I'll try that out and see if I can get it working.
Greetings;
You can do this in a user defined function, here is how I did it after looking at the question.
Right click on the UserArea in the Mapper Destination.
Click on Edit Function
On the menu on the left, Drag “Custom Function” over to the panel
Enter the function name, I used CreateUserAreaProperty
Set the first Parameter to Name, add another parameter, and set it to value.
Click on the XSLT Editor in the bottom left of the UDF window and enter this XSLT.
<xsl:element name="Property"> <xsl:element name="NameValue"> <xsl:attribute name="name"> <xsl:value-of select="$name"/> </xsl:attribute> <xsl:value-of select="$value"/> </xsl:element> </xsl:element>
To use the function:
1. Pass in the name of the property (I use a constant)
2. Pass in the value you want to put in the property (I mapped ReleaseID in this example)
3. Then map the output(3) to the UserArea (4)
4. You can do this multiple times to create multiple properties. (See output below)
This is the output:
Billy