Thank you for supporting the Cloud Customer Connect Community in 2024. It's a gift to work with you!

Look back
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

Unable to modify the value Product Number on Start and End Submit via script

edited May 14, 2019 10:48AM in Order Management 2 comments

Summary

Unable to modify the value Product Number on Start and End Submit in the Order Management Extension screen

Content

Hello all,

I have the below script which supposedly lets the system update the value of the field "Allow Partial Shipments of Lines" to No among another field.

def SDetails = header.getAttribute("Lines");                
while( SDetails.hasNext() ) { 
def line = SDetails.next();                              
def itemNumber = line.getAttribute("ProductNumber");
def PartialShipFlag = line.setAttribute("HeaderPartialShipAllowedFlag", "No");
def AutoDefine = line.setAttribute("ShipSetName", itemNumber);

The error generated is this:

“JBO-DOO:::DOO_CX_INVALID_UPDATE: <MESSAGE><NUMBER>DOO-2685897</NUMBER><TEXT>The extension Order-Extension cannot update attribute ShipSetName, of entity Line, during event On End of Submission Request, because this attribute is read-only.</TEXT><CAUSE></CAUSE><ACTION></ACTION><DETAILS></DETAILS><INCIDENT></INCIDENT></MESSAGE>”

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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