You need to sign in to do that
Don't have an account?
Query error
Hi,
I'm very, very, very new at this. I'm sure there are some OBVIOUS mistakes here, can anyone point them out to me please?
The error I get is Expected ')' which I do not think means what it says...
{!REQUIRESCRIPT("/soap/ajax/16.0/connection.js")}
var salesorders=sforce.connection.query(SELECT TotalAmount__c, Quote__r.TotalAmount__c FROM SalesOrder__c);
if (!
(document.getElementById('00N20000002M8v0').value ==document.getElementById('00N20000002M8uv').value)
)
{alert("Oops! The Total Amount is different than the one quoted to the customer.")}
else {alert("All good")};
Basically I am trying to comapre two fileds' values from the child and parent objects and alert the user if they don't match.
Thanks.