You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

OM Extension - Groovy script advice re concat or string

Summary:

Is it possible to get two attributes and then concat or string them into one setAttribute?

Content (please ensure you mask any confidential information):

For example i currently have the following bit of code where by i am moving ProductDescription into the attribute 'zitem':

 def TestContext = header.getOrCreateContextRow("Sales Order Additional Fields");

 TestContext.setAttribute("zitem",line.getAttribute("ProductDescription"));}

So if Productdescription = 'widget' then zitem = 'widget'.


Is it possible to move both ProductNumber and ProductDescription into the attribute 'zitem' like a concat or string?

Eg if ProductNumber = 'ABC123' and ProductDescription = 'widget', then zitem = 'ABC123 Widget'.


Version (include the version you are using, if applicable):

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!