You need to sign in to do that
Don't have an account?
DJP1S
Expression cannot be assigned
I'm trying to assign the date of a project parent object to the maximum date due of related child tasks.
I'm getting a "Save error: Expression cannot be assigned" error message based on the second variable setNewDueDate()
P1Task__c maxTaskDate = [SELECT Due__c FROM Page1Task__c WHERE Project__c = :this.currentTask.Project__c AND Status__c != '6) Completed' AND Status__c != '5) Deferred' AND Seq__c > :this.currentTask.Seq__c AND Due_Date_Auto_Calc__c = 'Always' AND Lag_Days__c != null ORDER BY Seq__c DESC LIMIT 1]; public void setNewDueDate(){ if(P1Project__c.Due__c != maxTaskDate.Due__c){ P1Project__c.Due__c = maxTaskDate.Due__c; } }
Now, I've tried this as well and it doesn't like it either.
Here's what I ended up doing. This seems to do the trick.
All Answers
Hi
try this
Thanks, I thought that would hti the nail on the head, but I'm now getting the following error:
Can you post littile more code snippet,so that analyze the what you declaring and what you are assigning
Here's what I ended up doing. This seems to do the trick.