This topic contains 1 reply, has 0 voices, and was last updated by rushabhsheth 6 years, 11 months ago.

  • Author
    Posts
  • #23260

    OmShankerJha

    HI,

    I have a Client script for validating address details on parent (like Contact, Customer).

    I have written some script on Address Form for setting some field, which is working. When I click OK on Address Form, the entered address is reflected in address sublist under Contact.

    Now when I click Add button to invoke my address validation script on Contact, it throw error while fetching the address fields, below is the line of code where its failing

    var address1 = nlapiGetCurrentLineItemValue('addressbook', 'addr1');

    Error:

    nlobjError {id: null, code: "UNEXPECTED_ERROR", details: "TypeError: Cannot call method "createElement" of undefined (INVOCATION_WRAPPER#921)", stacktrace: "stacktrace: function nlobjError(c,a,b)arguments: {โ€ฆonclick(event) arguments: {[object MouseEvent]}โ†ตโ†ต", suppressnotification: undefined, โ€ฆ}

    Can someone please help in finding the root cause of the issue.

    Thaks,

    Om
    This is a cached copy. Click here to see the original post.

  • #23261

    rushabhsheth

    I have a map reduce script that is giving me a similar error. Not sure how to solve it either.

    What I would suggest trying to invoke an alert or log.debug on the onClick event, and take it one-step at a time. That's what I'm trying to do.

You must be logged in to reply to this topic.