Using Search Task

When working out in the field, you are often assigned a region to inspect or update existing assets. You can use the Search task to find features within a map extent and by certain search criteria. You can then put the features you find in a work list so that you can visit them later.

NoteNote:

The data used in this topic is based on the data model discussed in A sample data model for field data collection.

Using the Search task

On a Windows Mobile device

  1. Open a project on your field device (see Opening/Closing/Deleting projects for more details).
  2. Tap Search on the Work List page.
  3. The Choose an option page appears.
    NoteNote:

    As shown in the screenshot below, if your project administrator has already defined searches for you, they will be listed on the page and you can tap each of them to execute and view the results directly (Read the Browsing search results section for more information). In addition, you can also create a new search and save it on your device. All pre-defined Searches will be listed on this page.

    List of pre-defined searches

    To delete a saved search, use the rocker button to highlight a search, then tap Menu > Delete Search.

  4. Tap Start New Search to start a new search.

On a Windows device

  1. Open a project on your field device (see Opening/Closing/Deleting projects for more details).
  2. On the View Map page, tap Tasks > Search.
  3. The Search page appears.
    NoteNote:

    As shown in the screenshot below, if your project administrator has already defined searches for you, they will be listed on the page and you can tap each of them to view the results directly (Read the Browsing search results section for more information). In addition, other searches you created and saved will be list on this page.

    List of pre-defined searches

    To delete a saved search, tap Edit then tap the search to delete it. When finished, tap Done.

  4. Tap New Search to start a new search.

Choosing a feature type to search

The first step in defining your search is to choose the feature type that you are looking for. When your project administrator authors your project, he/she defines what feature types can be searched when using the Search task. If you cannot find the feature type you have been assigned to inspect, contact your project administrator.

The Choose Feature Type page (Windows Mobile device) or Search—Choose a feature type page (Windows device) contains a list of feature types you can search for. Scroll down the page and tap the feature type you want to search against.

TipTip:

In the ArcGIS application running on a Windows Mobile device, if you know the name of the feature type you want to search for, you can narrow down the list of feature types by typing feature type name in the search bar at the top of the page.

TipTip:

A map layer might have several feature types (For example, a layer named Damaged assets might have the feature types Critically damaged, Fairly damaged, and so on), to better organize them you can group them by their layers. To do so, tapping Menu > Group By Layer. If you want to search against all feature types of the map layer instead of a feature type, tap the layer's name (Windows Mobile device) or All Types (Windows device) and the search will span all feature types, as shown in the image below.

search against a map layer on Windows Mobile devicesearch against a map layer in Windows device

After grouping feature types by map layers, you can further narrow the list by tapping Menu > Choose Layers (Windows Mobile device) or Menu > Filter Layers (Windows device), then unchecking the map layers that you don't want to see in the list, then tap OK.

If you're using a Windows Mobile device, after you've tapped a feature type to search against, the application will prompt you to see the search results directly or to add search criteria. To see the results directly, tap Find Now then read the Browsing search results section, to add search criteria, tap Refine Search then read the next section.

Defining the search area and search criteria

Once you have chosen a feature type, you can specify a search area and construct search queries on the Setup Search Criteria page.

  1. On the Setup Search Criteria page, you can tap the Search Area button then reset the search area to current map extent, entire map or a custom extent.
  2. If you select custom extent in the last step, the Choose Extent page appears with a map view. Zoom in/out and pan to the area you want to search against, then tap Accept (Windows Mobile device) or Ok (Windows device) to return to the Setup Search Criteria page.
  3. To add search query, tap Add Criteria on the Setup Search Criteria page.
  4. The Choose Field (Windows Mobile device) or The Add Criteria: Choose Field (Windows device) page shows. Tap the field that you want to use for creating a search criteria.
  5. The next page presents you a list of operators based on which you can create expressions such as "Assessment Date (a date field) in the past 48 hours", "Occupant Name (a text field) contains Taylor" or "Number of Floors (a numeric field) less than or equals 5".
    TipTip:

    Your project administrator can attach business rules to certain fields. If you pick a field that has an associated rule, a drop-down list appears and presents the valid values for the rule. For example, the field "Is there basement?" may present the list of values "Yes", "No" and "Unknown". This makes it much easier for field workers to pick from the list rather than typing on thedevice.

  6. After you have added a criteria, it will be listed on the Setup Search Criteria page. Repeat steps 1-5 to add more criteria if necessary.
  7. If you want to edit or deleted a saved criteria:
    • On a Windows Mobile device, tap the criteria directly then tap Edit and follow step 5 to edit it, or tap Remove to delete it.
    • On a Windows device, tap the criteria directly then follow step 5 to edit it, or tap Edit then tap on a criteria to delete it.
  8. If you want to save the search for later use, read the Saving the search criteria section. If you want to view the results directly, tap Show Results then read the Browse search results section.

Saving the search criteria

You can save a search defined through the steps in the last section. This enables you to execute your query multiple times without having to redefine it. To save the search criteria:

  1. Follow the steps in the last section to define search criteria.
  2. When done, tap Menu > Save Search Criteria (Windows Mobile device) or Menu > Save Search (Windows device) at the bottom of the Setup Search Criteria page.
  3. On the next page, enter a name for the search (such as "Undamaged assets") then tap OK (Windows Mobile device) or Save (Windows device).
    NoteNote:

    If you have already saved this search, you will be prompt to overwrite the existing one or save it as a new one with different name.

  4. When your search is saved, you will be redirected to the Setup Search Criteria page. If you're using a Windows device, title of the Setup Search Criteria page will become the name of the search.

Browsing search results

After you have defined a search, you can view the results on map and their attributes on the attribute page.

TipTip:

If you're using a Windows Mobile device, the number of features found will be listed at the bottom left of the Setup Search Criteria page.

  1. To browse the features you have found, tap Show Results on the Setup Search Criteria page.
  2. The Search Results page appears with a list of features found.

Working on searched features

You can perform various operations to individual searched features or to all results.

Operations on individual search results

From the search results page, you can perform various operations to individual features including:

the following screen shots shows the operations you can perform to a search result:

Operations of a result in Windows Mobile deviceOperations of a result in Windows device

If you're using a Windows Mobile device, tap a feature directly from the search result to see the available operations; If you're using a Windows device, tap a feature on the Search Results list, then tap the show feature's available operations button.

Operations on all search results

You can also add all search results to work list or refresh the search results after updating a feature .

To add all search results to work list, tap Menu > Add All to Work List on the search results page.

Additionally, you can refresh the search results if you edit a feature which makes it no longer fit a search criteria, or if your edits on other features makes them fit in the search result. To do so, tap Menu > Refresh Results. The features that don't match the search criteria will be removed from the list, and if there are other features that now fit the search criteria, they will show up in the result list.

Refining an existing search

You can update search area or search criteria for an existing search by following the steps below:

  1. Open the Choose an option page (Windows Mobile device) or Search page (Windows device) and tap a saved search, or following the sections above to define a search on-the-fly.
  2. On the Search Results page, tap Refine Search.
  3. The Setup Search Criteria page shows, follow the steps in the Defining the search area and search criteria to refine the search criteria.

8/16/2013