PDA

View Full Version : Search isn't working



Silverchild
6 Feb 2008, 3:53 PM
I have a notesview where the search isn't working at all. Search works in the notes client. Where should I begin to look for my problem?

RWaters
6 Feb 2008, 4:15 PM
Firebug is your friend. Load the page up in firefox and watch the request that is sent to the agent in firebug. You can expand the response section to see what the server is sending back... perhaps the agent is running into an error somewhere.

tarikonen
6 Feb 2008, 11:54 PM
Hi Richard i think that there is a problem with search in a view with icon column, in the demo if you try to search (in the view "View Demos\Flat views\example 1") the word "Code" you find some document but the order of column value it's not right.
I'm trying with my db and i have a similar problem but the agent goes in error, my friend ;-) firebug tell me
<entrydata columnnumber="8" name="$9">
<error>Error in SearchView: Type mismatch---at 74</error>
</viewentries>
and i have a view with an icon column.

Bye

RWaters
7 Feb 2008, 7:38 AM
It's 'Rich'. Thanks, I'll check it out.

tarikonen
7 Feb 2008, 7:43 AM
Sorry :"> Rich

RWaters
7 Feb 2008, 7:46 AM
Sorry :"> Rich

no worries, I have never liked to go by my full name :P

Silverchild
7 Feb 2008, 9:24 AM
Search #1 checks the database and returns results but they don't get displayed. I have a view with 3 icon columns.

Search #2 checks a different database and I get the error:
Error in SearchView: Object variable not set---at 50

RWaters
7 Feb 2008, 12:12 PM
Search #1 checks the database and returns results but they don't get displayed. I have a view with 3 icon columns.

Search #2 checks a different database and I get the error:
Error in SearchView: Object variable not set---at 50

Can you look at the requests in firebug and post the contents of the 'params' and 'response' tabs?

Silverchild
7 Feb 2008, 1:09 PM
Search #1 Params:

OpenAgent
_dc 1202418202561
count 40
db /OneBeacon\Design\rcisDesign.nsf
query Coastal
random 1202418202561
start 1
vw MyRequestsVendor2

Search #1 Response:

<?xml version="1.0" encoding="iso-8859-1"?>
<viewentries toplevelentries="2">
<viewentry position="1" unid="DCE4AD4380218131852573B700086DA0" noteid="ED15E" siblings="2074">
<entrydata columnnumber="0" name="$10">

<text>Coastal Exposures</text>

</entrydata>

<entrydata columnnumber="1" name="$16">

<text></text>

</entrydata>

<entrydata columnnumber="2" name="$12">

<text>C</text>

</entrydata>

<entrydata columnnumber="3" name="$9">

<text>Address Data</text>

</entrydata>

<entrydata columnnumber="4" name="$14">

<text>167</text>

</entrydata>

<entrydata columnnumber="5" name="SurveyType">

<text>Survey</text>

</entrydata>

<entrydata columnnumber="6" name="$15">

<text>11/01/2007 06:03:40 PM</text>

</entrydata>

<entrydata columnnumber="7" name="$13">

<text>12/12/2007</text>

</entrydata>

<entrydata columnnumber="8" name="StatusFlag">

<text>0</text>

</entrydata>

<entrydata columnnumber="9" name="$17">

<text>12/27/2007</text>

</entrydata>

</viewentry>

<viewentry position="2" unid="BCCF32EFACB0ABA3852573B700086D9F" noteid="ED15A" siblings="2074">

<entrydata columnnumber="0" name="$10">

<text>Coastal Exposures</text>

</entrydata>

<entrydata columnnumber="1" name="$16">

<text></text>

</entrydata>

<entrydata columnnumber="2" name="$12">

<text>C</text>

</entrydata>

<entrydata columnnumber="3" name="$9">

<text>Address Data</text>

</entrydata>

<entrydata columnnumber="4" name="$14">

<text>167</text>

</entrydata>

<entrydata columnnumber="5" name="SurveyType">

<text>Survey</text>

</entrydata>

<entrydata columnnumber="6" name="$15">

<text>11/01/2007 06:03:40 PM</text>

</entrydata>

<entrydata columnnumber="7" name="$13">

<text>12/12/2007</text>

</entrydata>

<entrydata columnnumber="8" name="StatusFlag">

<text>0</text>

</entrydata>

<entrydata columnnumber="9" name="$17">

<text>12/27/2007</text>

</entrydata>

</viewentry>

</viewentries>

Search #2 Params:

OpenAgent
_dc 1202418506171
count 40
db /OneBeacon\Design\rcisDesign.nsf
query Rctestcase
random 1202418506171
start 1
vw AccountSummaries

Search #2 Response:

<?xml version="1.0" encoding="iso-8859-1"?>

<error>Error in SearchView: Object variable not set---at 50</error>

</viewentries>