View Full Version : [OPEN][BETA3]View search error: 'records' is null or not an object
arturo@dallas.net
18 Jan 2010, 10:05 AM
Hi,
When using the search feature within the view UI, I will occasionally receive the error message below:
Message: 'records' is null or not an object
Line: 58
Char: 170
Code: 0
URI: http://<server name deleted>/extnd_b3.nsf/extnd/3x/extnd-all.js
It seems to only happen when the search terms return 0 matches (I search for something that does not exist). However, it does not happen every time the search terms return 0 matches. Search terms that do return one or more matches do not generate this error.
Sometimes it can be hard to reproduce, but one of the easiest ways I have found is to put the cursor inside the Search field and without typing anything, click the Enter key. The error message should appear.
I was able to reproduce this problem in several databases, full-text indexed or not, including the Ext.nd Beta R1 Demo. The server is a Domino 8.0.2 Windows server, and my browser is IE8 Windows XP.
Please let me know if you need any more information.
Thank you for your help!
Arturo
erenault
29 Jan 2010, 12:46 AM
Hello
are you indexed your database ?
breckster
31 Jan 2010, 8:04 PM
I have seen the same error and I'm using a similar configuration.
If you capture the response... ( I use Fiddler) to see the exact response to the search, you probably find that response is not well formed .... I think this is an issue with the Lotuscript agent (extnd/3x/SearchView) in the Ext.nd database throwing an error......but I have not looked into it fully yet...
anba2404
16 Apr 2010, 2:35 AM
Not clear whether the issue of search in view is the same that I have, but maybe can help you how I solved.
I applied the code change in the agent '(extnd/3x/SearchView)'
as described in the thread
http://www.extjs.com/forum/showthread.php?78024-Ext.nd-Beta-3-available-for-download&p=446395#post446395
But it was not enough because if there were columns in the view of number values, the search was in error.
Then I found the error code and applied to further change in the same agent:
The fix begin around line code 170
sep = |</| & elementName & |><| & elementName & |>|
'April, 16 2010 Andrea Barbiero. Fix the bug on search view:
'see: http://www.extjs.com/forum/showthread.php?78024-Ext.nd-Beta-3-available-for-download&p=446395#post446395
'if the value is numeric but have only one element (it is a numeric array of one element)
'the code FullTrim(value)
'cause an error.
''Start Changes
'displayValue = XMLEscape(CStr(Join(FullTrim(value), sep)))
'this lines was modified
If Ubound(value) > 0 Then
displayValue = XMLEscape(CStr(Join(FullTrim(value), sep)))
displayValue = |<| & elementName & |list>| & |<| & elementName & |>| & displayValue & |</| & elementName & |>| & |</| & elementName & |list>|
Else
displayValue = XMLEscape(CStr(value(0)))
displayValue = |<| & elementName & |>| & displayValue & |</| & elementName & |>|
End If
'End Changes
I hope it can help
Andrea ;)
anba2404
16 Apr 2010, 5:53 AM
use
strParameters = docCurrent.GetItemValue("Query_String_Decoded")(0)
instead
strParameters = docCurrent.GetItemValue("Query_String")(0)
;)
anba2404
16 Apr 2010, 5:58 AM
If the view have a number value column, the search agent return an error.
This code fix the problem.
sep = |</| & elementName & |><| & elementName & |>|
'April, 16 2010 Andrea Barbiero. Fix the bug on search view:
'see: http://www.extjs.com/forum/showthread.php?78024-Ext.nd-Beta-3-available-for-download&p=446395#post446395
'if the value is numeric but have only one element (it is a numeric array of one element)
'the code FullTrim(value)
'cause an error.
'Start Changes
'displayValue = XMLEscape(CStr(Join(FullTrim(value), sep)))
'this lines was modified
If Ubound(value) > 0 Then
displayValue = XMLEscape(CStr(Join(FullTrim(value), sep)))
displayValue = |<| & elementName & |list>| & |<| & elementName & |>| & displayValue & |</| & elementName & |>| & |</| & elementName & |list>|
Else
displayValue = XMLEscape(CStr(value(0)))
displayValue = |<| & elementName & |>| & displayValue & |</| & elementName & |>|
End If
'End Changes
Andrea ;)
Powered by vBulletin® Version 4.1.5 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.