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.