Search Widget for Flex
Pages 202
- Home
- 2009 Esri Federal UC
- 2009 Esri International UC
- 2010 Esri Federal UC
- 2010 Esri International UC
- 2011 Esri Federal UC
- 2012 Esri Federal UC
- 2013 Esri Federal GIS Conference
- 2013 Esri International User Conference
- 2015 SDI Special Interest Group
- Add a Custom Profile
- Add an OpenSearch endpoint for Federated Search
- Add Another Tab to the Geoportal Interface
- Add Custom Link to a Search Result
- Add Custom Search Criteria
- Add the Geoportal Search to a List of Search Providers
- Add v1.1.1 FGDC editor to a previous Geoportal release
- AGP TO AGP Harvesting with the Geoportal
- AGS TO AGP Harvesting with the Geoportal
- All gpt.xml file settings
- An Introduction to vi
- Apache Tomcat geoportal logging
- Being a Good Robot
- Best Practice for Edits to JSP files
- Biological or Remote Sensing FGDC xsds
- Browse Tree
- Cart Processor
- Catalog Service
- Clear the Tomcat Work Folder
- Collections
- Common problems and solutions
- Communities and live examples
- Components
- Configure a Directory Server for the Geoportal
- Configure geoportal User and Schema in the PostgreSQL Database
- Configure Previewable Filetypes
- Configure Searching of YouTube
- Configure the gpt.xml File
- Configure Widgets
- Connecting to a User Directory
- Create a user account
- Create Relationships between Resources
- Customizations
- Customize DCAT output
- Customize Metadata Validation
- Database problems
- Database Tables
- DataDownload Tab
- Deploy and Configure the Geoportal Web Application in Tomcat
- Deploy and Configure the Servlet Web Application
- Deploy the Geoportal Web Application
- Details of Lucene Indexing in the Geoportal
- Development topics
- Discovering Resources
- Eclipse Project from Compiled WAR
- Eclipse Project from Source Code
- Enable Search Using an Ontology Service
- Error Messages in the Geoportal Web Application
- Esri Geoportal Server LiveDVD
- Extending the Web Harvester
- Federated Search in Portal for ArcGIS
- Feedback
- FGDC Biological Profile and Remote Sensing Extension
- FGDC Service Checker Integration
- Geoportal Clients for ArcGIS
- Geoportal CSW Clients
- Geoportal Facets using Apache Solr
- Geoportal genie
- Geoportal Project from Compiled WAR
- Geoportal Publish Client
- Geoportal Server 1.2.5 What's New
- Geoportal Server 1.2.6 What's New
- Geoportal Server 1.2.7 What's New
- Geoportal server as a broker
- Geoportal Server Downloads
- Geoportal Server v 1.0 What's New
- Geoportal Server v 1.1 What's New
- Geoportal Server v 1.1.1 What's New
- Geoportal Server v 1.2 What's New
- Geoportal Server v 1.2.2 What's New
- Geoportal Server v 1.2.4 What's New
- Geoportal SPARQL Sample
- Geoportal User Interface Components
- Geoportal Web Application File Organization
- Geoportal XML Editor
- Get Assistance with an Implementation
- GXE Concepts
- GXE Crash Course
- GXE Structure
- GXE Workflow
- High Availability and Large Number of Records
- How to Browse for Resources
- How to Create and Manage My Profile
- How to find all documents of a particular metadata standard
- How to Leave a Resource Review
- How to Login and Manage my Password
- How to Manage and Edit Resources
- How to Publish Resources
- How to Restrict Access to Resources
- How to Search for Resources
- How to Search with an Ontology Service
- How to Set Up an Esri Geoportal Server on Linux
- How to Use Search Page Results
- How to Use the Data Download Feature
- How to View Resource Relationships
- IDE Topics
- Identity Components LDAP and Single Sign On
- Index All Metadata Content
- Indexing and Searching the Time Period of the Content
- Install Apache Tomcat 6
- Install Desktop Tools
- Install Esri Geoportal Server
- Install PostgreSQL 9.1.2
- Install the JDBC .jar Files
- Installation
- Installation Version 1.0
- Installation Version 1.1
- Installation Version 1.2
- Installation Version 1.2.2
- Installation Version 1.2.4
- Installation Version 1.2.5
- Installation Version 1.2.6
- Installation Version 1.2.7
- Installation Version 1.2.8
- Integrate with a Content Management System
- Integrate with the con terra Security Solution
- Localization
- Log In to the Geoportal
- Logging
- Look and Feel of the User Interface
- Main Page
- Map LDAP Attributes on the Registration Page
- Map Viewer
- Online form editing for all publication methods
- Open source acknowledgements
- Oracle WebLogic geoportal logging
- Orientation to the Create Metadata Page
- Perform Preinstallation Computer Setup
- Portal for ArcGIS Integration
- Post Deployment Actions
- Preinstallation
- Preinstallation 0.9
- Preinstallation 1.0 and 1.1.x
- Preinstallation 1.2
- Preinstallation 1.2.2
- Preinstallation 1.2.4
- Preinstallation 1.2.5
- Preinstallation 1.2.6
- Preinstallation 1.2.7
- Preinstallation 1.2.8
- Preview Function
- Publication Components
- Ratings and Comments for Search Results
- Register ArcGIS for Server with the Geoportal
- Release notes
- REST API Syntax
- Sample FGDC metadata.xml
- Scheduled tasks
- Search Components
- Search Map
- Search Widget for Flex
- Search Widget for HTML
- Search Widget for Silverlight
- Security Concepts
- Set Up Systemwide Environment Variables
- Set up the Geoportal Database
- Share Link
- Single Sign On
- Smoketest the Geoportal
- Standards Support
- Supported CSW Profiles for Synchronization
- Theme Library
- Troubleshooting
- Troubleshooting Tips
- Two geoportals on the same server
- Upgrade 1.x to 1.2 database
- Upgrading file system approach
- Upgrading Read This Overview
- Upgrading SVN approach
- Url filter customization
- Use an XSLT to Render the Details Page
- Use Ant to build Geoportal
- User Functions and Roles
- User Management Interface
- Using a geoportal
- Using Lucene Search Text Queries
- Version 0.9
- Version 1.0
- Version 1.1
- Version 1.1.1
- Version 1.2
- Version 1.2.2
- Version 1.2.4
- Version 1.2.5
- Version 1.2.6
- Version 1.2.7
- Version 1.2.8
- What is a geoportal and the geoportal server
- What is the esri geoportal server
- What's New
- wiki template
- WMC Client
- Show 187 more pages…
Clone this wiki locally
The Geoportal Search Widget for Flex allows users to search other geoportals from within a Flex Viewer.
The ArcGIS API for Flex allows for the creation of Rich Internet applications on top of ArcGIS Server. It is based on the free Adobe Flex framework. Esri provides a sample viewer application that can be integrated with the geoportal, using the Geoportal Search Widget for Flex. This topic will address how to add the Geoportal Search Widget to an existing Flex Viewer and how to use the Geoportal Search Widget for Flex once it is added.
How to Add the Geoportal Widget to a Flex Viewer Application
Prerequisite: The following tools are required for project compilation and testing:
- Flex Builder 4.x IDE
- Flex 4.x SDK
- ArcGIS Flex API 2.x
- ArcGIS Viewer for Flex 2.x (For Geoportal Server Release 1.2.4 or higher, please download ArcGIS Viewer for Flex 3.x )
- Import Flex Viewer source code into Flex Builder.
- Download ArcGIS Viewer for Flex 2.x (For Geoportal Server Release 1.2.4 or higher, please download ArcGIS Viewer for Flex 3.x ).
- File-->Import Flash Builder Project.
- Click "Browse" and navigate to Flex Viewer source code .zip file.
- Integrate ArcGIS Flex API into Project.
- Download ArcGIS Flex API 2.5 source code (For Geoportal Server Release 1.2.4 or higher, please download ArcGIS Flex API 3.3 source code).
- Unzip file and copy .swc file from /ArcGIS_Flex/libs to Flex Viewer libs folder.
- Windows Default: C:\users\<name>\Adobe Flash Builder 4.6\FlexViewer\libs.
- In Flex Builder go to Project-->Properties.
- In Properties windows go to Flex Build Path and click Add SWC.
- Browse to .swc from previous step and click OK.
- Optional: Change Output Folder and Output Folder URL to the directory and URL for your Web server.
- Add Search Widget for Flex to Flex Viewer.
- Go to Search Widget source code page.
- Click Download GNU tarball.
- Extract geoportal-trunk.tar.gz and subsequent geoportal-trunk.tar files using 7-Zip or another similar program.
- From the /geoportal-trunk/trunk/geoportal folder, copy the three folders below to the Flex Viewer folder (Windows Default: C:\users\<name>\Adobe Flash Builder 4.6\FlexViewer).
- etc
- locale
- src
- Yes to merge folders, but No to replace files.
- In Flex Builder, return to Project-->Properties and go to Flex Modules.
- Click Add and browse to FlexViewer-->src-->widgets-->Find Data, select FindDataWidget.mxml, and click OK.
- Update config.xml file.
- From /FlexViewer/etc folder, copy the config-eclipse.xml file to the /FlexViewer/src folder.
- Rename config.xml to config_bak.xml.
- Rename config-eclipse.xml to config.xml.
- In Flex Builder click Run to compile Flex Viewer with Flex Widget.
- Test the Geoportal Search Widget for Flex integration using the information below on how to use the tool.
How to Use the Geoportal Search Widget for Flex
When the Geoportal Search Widget for Flex is properly integrated into your Flex Viewer, you should be able to launch a Find Data widget from the interface. This Find Data window is the Geoportal Search Widget for Flex. To launch it, hover your mouse pointer over the cube Tools icon in the viewer's main menu, and you will see the Find Data tool displayed in the list of available tools. Click on it to launch the Find Data user interface.
How to search for resources
Notice that the Find Data window has one input field, a Search button, and three radio buttons. The input field accepts any lucene search query. You can type in a simple query, such as just one keyword to search, or you can develop more complex queries Using Lucene Search Text Queries. Furthermore, you can limit search results to a certain spatial extent. Select the appropriate radio button: Anywhere means no spatial filter will be applied, Intersecting will retrieve records that touch or overlap the spatial extent currently shown in the Flex Viewer, and Fully Within will retrieve records where the spatial extent falls fully within the extent currently shown in the Flex Viewer.
Once you have entered the search criteria, click the Search button.
Search results matching your criteria are returned. Doubleclick on one of the records, and the interface zooms to the spatial extent of the resource. Another window appears, showing information for that search result resource and links that provide the same functionality that you'd see on the geoportal search page. You will notice that no Preview link is generated, and instead an Add to Map link appears for Live Data. That is because in this Flex application, users preview the service when they chose to add it to the map with the Add to Map link.
Other tools in the Find Data window
At the top right side of the Find Data window, there are four icons. The first is a set of binoculars, and the second is a square chart. These two buttons allow for toggling between the search interface and the list of resources. Click on the binoculars to define a search; click on the chart to see the results from the previous search. The third and fourth buttons define the behavior of the window itself. Click on the green arrow to minimize the window. Click on the X button to close it.
If you close the window, but want to open it again, hover the pointer over the cube Tools icon in the viewer's main menu, and you will see the Find Data tool displayed in the list of available tools. Click on it to restore it to the Find Data user interface.
Viewing a service in the interface
The Flex Viewer should support adding a variety of web services to the map, including ArcIMS, ArcGIS Server REST services, OGC WMS, and GeoRSS. If a service is not running or is of an unsupported service type, it will not appear on the map interface even though an Add to Map link is displayed with the search result.
How to navigate the Flex Viewer map
Documentation for how to use the Flex Viewer is specific to its implementing organization, and will be defined in the Flex Viewer's help by the organization hosting the viewer.
Back to Geoportal Clients for ArcGIS