I recently upgraded to
Version R2 2.2rc1-build 319
Java version 1.4.2_04-b05 (Windows XP)
I had the following search method attached to a on show event prior to upgrade:
controller.find()
order_classification = “Flexible Endoscope”
estimate_completion_date = “^”
forms.FlexQCServiceEstimate.os_order_ = “^”
foundset.sort(‘CreatedRecvd_DateTime asc’);
controller.search();
// Count Found Set
globals.Found_Set_Count = forms.FlexQCServiceEstimate.controller.getMaxRecordIndex();
Everything worked fine:
I noticed that the method was changed to the following after the upgrade:
controller.find()
order_classification = “%Flexible Endoscope%”
estimate_completion_date = “^”
forms.FlexQCServiceEstimate.os_order_ = “^”
foundset.sort(‘CreatedRecvd_DateTime asc’);
controller.search();
// Count Found Set
globals.Found_Set_Count = forms.FlexQCServiceEstimate.controller.getMaxRecordIndex
As you can see, wild cards are added. If I remove them I get the following error:
java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]The text, ntext, and image data types cannot be compared or sorted, except when using IS NULL or LIKE operator. [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]The text, ntext, and image data types cannot be compared or sorted, except when using IS NULL or LIKE operator.
I am confused as to why I now need to add wildcards, when I don’t want them.
Additionally, I wanted to add another request to my find criteria:
controller.find()
order_classification = ‘%Flexible Endoscope%’
estimate_completion_date = “^”
forms.FlexQCServiceEstimate.os_order_ = “^”
controller.newRecord()
order_classification = ‘%Flex Accessories%’
foundset.sort(‘CreatedRecvd_DateTime asc’);
controller.search();
// Count Found Set
globals.Found_Set_Count = forms.FlexQCServiceEstimate.controller.getMaxRecordIndex();
When I run this method, it returns the correct found set, but it changes the values for classification from Flex Accessories to %Flex Accessories%
but it does not change the classification values for the records where the classification values are Flexible Endoscope.
I am a bit bewildered, can someone shed some light?
thanks,
Erich