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 will 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.

Products: ArcGIS Mobile

Platforms: Windows Mobile 5/6

Requires: Visual Studio 2008 with SP1, .NET Compact Framework 2.0 SP2

How to use

  1. Open the project within Visual Studio 2008. To learn how to set up your development machine, click here.
  2. 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/emulator.
  3. Build and deploy the mobile project assembly file (comes with the sample project) to the <ArcGIS Mobile installation path>\bin\Extensions folder on your desktop where you will author your mobile project with the Mobile Project Center application.
  4. In Mobile Project Center, add the extension to your project on the Capabilities tab.
  5. Deploy your mobile project to your Windows Mobile device or emulator. For more details on deployment, click here.
  6. Start the out-of-box mobile application.
  7. Tap to open the mobile project.
  8. On the Select Task page, tap View Map.
  9. On the View Map page, tap the Identify button on the right and tap one of the features that has the audio field.
  10. On the result page, tap a feature (which has the audio field) and choose to view attributes from the pop-up menu.
  11. On the feature's attribute page, see how the information for the audio field has been customized.
  12. Choose to edit the attribute. If there is no value for the audio field, tap on 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 for download from here.


9/20/2011