Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Change Variable in XML command

deiamolina
Active Participant
0 Kudos

Hello,

I created an Simple transformation code and I'm trying to change the PARNR code in this command:

<Product ID="$CONT.PARNR" UserTypeID="ContactName">

It should be:

<Product ID="12345" UserTypeID="ContactName">

Is it possible in Simple Transformation? How can I change it?!

Thanks.

Andréa

1 ACCEPTED SOLUTION

deiamolina
Active Participant
0 Kudos

Solved:

          <Product UserTypeID="ContactName">

           <tt:attribute name="ID" value-ref="$CUST.CUST_ID" />

Result:

<Product ID="Cust_A" UserTypeID="ContactName">



1 REPLY 1

deiamolina
Active Participant
0 Kudos

Solved:

          <Product UserTypeID="ContactName">

           <tt:attribute name="ID" value-ref="$CUST.CUST_ID" />

Result:

<Product ID="Cust_A" UserTypeID="ContactName">