Will someone help me figure out how to write conditions for this case?
I have a model (ModelA) with a lookup field called Staff__c.
I have a model (SelectedStaff) which will either be empty (if no staff is selected) or have one row.
I want ModelA to return records where Staff__c=null when the SelectedStaff model is empty, and Staff__c=(SelectedStaff)(Id) when it's not empty.
I'm struggling to write conditions to do that. Help?
I have a model (ModelA) with a lookup field called Staff__c.
I have a model (SelectedStaff) which will either be empty (if no staff is selected) or have one row.
I want ModelA to return records where Staff__c=null when the SelectedStaff model is empty, and Staff__c=(SelectedStaff)(Id) when it's not empty.
I'm struggling to write conditions to do that. Help?
Matt Sones, Champion
Otherwise, I have no idea.
mB Pat Vachon, Champion
Matt Sones, Champion