Most probably this is actually a syntax error. This pertains to proper use of operators such as incorrectly switching double "=="
to single "="
With single "=", you are actually assigning a value to a variable.
Example incorrect code that generates the Error "Invalid assignment left-hand side":
Correct code:
------------------
if (varA = varB) {
varA == nlapiSetFieldValue('fieldA');
}
------------------
------------------
if (varA == varB) {
varA = nlapiSetFieldValue('fieldA');
}
------------------
No comments:
Post a Comment