Edit Attributes extension

Description

This sample shows how to customize the pages for viewing and editing attributes. If you have a BLOB field in your feature class that starts with audio_ in the field name, the extension will show options on attributes for viewing or editing the audio file. From this sample, you'll learn how to customize the attribute viewing and editing page by plugging in your own controls and be shown the logic on how users can interact with them.

Prerequisites

Product: ArcGIS for Windows Mobile

Platforms: Windows Mobile 5/6

Requirements: Visual Studio 2008 with SP1, .NET Compact Framework 3.5

How to use

  1. Open the project in Visual Studio 2008.
  2. Compile the project and deploy the assembly to your mobile device or emulator.
  3. Prepare a mobile project with an associated mobile service carrying a feature class that has a BLOB field name starting with audio_. Download the mobile project to your device or emulator.
  4. Build and deploy the mobile project assembly file (included with the sample project) to the <ArcGIS Mobile installation path>\bin\Extensions folder on your desktop where you'll author your mobile project with the Mobile Project Center application.
  5. In Mobile Project Center, add the extension to your project on the Capabilities tab.
  6. Deploy your mobile project to your Windows Mobile device or emulator. For more details on deployment.
  7. Start the out-of-the-box mobile application.
  8. Open the mobile project.
  9. On the Select Task page, tap View Map.
  10. On the View Map page, tap the Identify button on the right and tap one of the features that has the audio field.
  11. On the result page, tap a feature (that has the audio field) and choose to view attributes from the pop-up menu.
  12. On the feature's attribute page, notice how the information for the audio field has been customized.
  13. Choose to edit the attribute. If there is no value for the audio field, tap it. You are presented with a customized page with a button allowing you to record a .wav file.

Where to get the sample

The sample is available to download fromArcGIS Online.

1/7/2015