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
- Open the project in Visual Studio 2008.
- Compile the project and deploy the assembly to your mobile device or emulator.
- 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.
- 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.
- In Mobile Project Center, add the extension to your project on the Capabilities tab.
- Deploy your mobile project to your Windows Mobile device or emulator. For more details on deployment.
- Start the out-of-the-box mobile application.
- Open the mobile project.
- On the Select Task page, tap View Map.
- On the View Map page, tap the Identify button on the right and tap one of the features that has the audio field.
- On the result page, tap a feature (that has the audio field) and choose to view attributes from the pop-up menu.
- On the feature's attribute page, notice how the information for the audio field has been customized.
- 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