Page 1 of 1

Search results showing 9 records not 10

PostPosted: Fri Dec 04, 2009 8:44 am
by sws-solutions
Whilst integrating fmSearchResults, I couldnt help noticing that it stated

"Results 1 to 10 of 299" (when searching tra in the demo file)

However, only shows 9 records.

This led me to beleive the 10th record was actually the line showing
.. and 289 more companies

As a test, in the script for Create Result Lines I added the following

Code: Select all

// JUST AFTER THE FREEZE WINDOW STEP

If [GetAsNumber ($fc) > GetAsNumber ($$sr Result Limit)]
  Set Variable [$record counter ; Value: $record counter -1]
End If

// BEFORE THE START OF THE LOOP


The results now correctly show 10 items along with the '..and more link.'

I dont know if this was the best way of doing it, since im just getting started but, it worked for me.

P.S I couldnt beleive how easy it was to integrate, within 30 minutes of purchase I had already integrated and customised the results layout enough to suite my solution.

To say im impressed is an understatement