This topic contains 0 replies, has 0 voices, and was last updated by Nikolay Georgiev 6 years, 6 months ago.

  • Author
    Posts
  • #17929

    Nikolay Georgiev

    Greetings all!

    I am developing a client script with the purpose of setting document ( in my case PO and SO ) status to ‘CLOSED’. I read about it and considered that the best way to achieve it is to iterate over each line and set the line field ‘CLOSED’ to true. For this purpose I load the record dynamically, select each line, set its status and then commit it. It works perfectly for the PO. However the same code fails in the SO. The error is thrown in the browser console and says ‘Line validation failed for sublist: item’. I cannot figure this out. Field IDs for ‘CLOSED’ field is ‘isclosed’ for both PO and SO records. I have also tried setting the parameter ‘ignoreFieldChange’ to true in the ‘setCurrentSublistValue’ method but the problem persists. Any help would be appreciated. Thanks!
    This is a cached copy. Click here to see the original post.

You must be logged in to reply to this topic.