Select to view content in your preferred language

Find Data Tool in Flex Viewer Sample only returns 10 results

898
1
09-08-2010 08:03 PM
KarenRobine
Frequent Contributor
I was asked to change the number of results returned in the Find Data tool in the Flex Viewer sample. But its not clear how to do this.  Should be a Config setting but its not. 
So if not a config setting, where, in code to do this?

Karen
0 Kudos
1 Reply
CliveReece
Esri Contributor
What's happening is the default max return results from a REST API response is 10 (see the REST API syntax at http://help.arcgis.com/en/geoportal_extension/10.0/help/00t0/00t000000029000000.htm).

In the current example widget, there is no UI for a user to configure the number of return results at runtime. 

On the server side, however, you can leverage the REST API syntax and increase the number of results using the 'max' parameter.  For example, you can edit the GeoportalSearchWidget.xml to set the max number of results returned, as in:
<gptEndpoint url="rest/find/document?max=20" name="Default Site"/>

good luck  -Clive
0 Kudos