Can we qualify data based on non-class property? Using following mechanism, I was receiving error as shown here:
EOKeyValueQualifier custQual = new EOKeyValueQualifier("custID",
EOQualifier.QualifierOperatorNotEqual, sales.toCust());
NSArray activeCusts = EOQualifier.filteredArrayWithQualifier(sales, finalQual);
com.webobjects.foundation.NSKeyValueCoding$UnknownKeyException: <com.mtj.model.Map 0xcb43d9> valueForKey(): lookup of unknown key: 'custID'.
This class does not have an instance variable of the name custID or _custID, nor a method of the name custID, _custID, getCustID, or _ getCustID
at com.webobjects.foundation.NSKeyValueCoding$DefaultImplementation.handleQueryWithUnboundKey(NSKeyValueCoding.java:1316)
at com.webobjects.eocontrol.EOCustomObject.handleQueryWithUnboundKey(EOCustomObject.java:1623)
at com.webobjects.foundation.NSKeyValueCoding$Utility.handleQueryWithUnboundKey(NSKeyValueCoding.java:544)
at
com.webobjects.foundation.NSKeyValueCoding$_KeyBinding.valueInObject(NSKeyValueCoding.java:920)
at com.webobjects.eocontrol.EOCustomObject.valueForKey(EOCustomObject.java:1559)
at com.webobjects.foundation.NSKeyValueCoding$Utility.valueForKey(NSKeyValueCoding.java:498)
at com.webobjects.foundation.NSKeyValueCodingAdditions$DefaultImplementation.valueForKeyPath(NSKeyValueCodingAdditions.java:212)
at com.webobjects.eocontrol.EOCustomObject.valueForKeyPath(EOCustomObject.java:1675)
at com.webobjects.foundation.NSKeyValueCodingAdditions$Utility.valueForKeyPath(NSKeyValueCodingAdditions.java:149)
at com.webobjects.eocontrol.EOKeyValueQualifier.evaluateWithObject(EOKeyValueQualifier.java:131)
at com.webobjects.eocontrol.EOAndQualifier.evaluateWithObject(EOAndQualifier.java:96)
at com.webobjects.eocontrol.EOAndQualifier.evaluateWithObject(EOAndQualifier.java:96)
at com.webobjects.eocontrol.EOQualifier.filteredArrayWithQualifier(EOQualifier.java:635)
at com.aso.model.Sales.activeCusts(Sales.java:514)
Shravan Kumar. M