AttributeCustomization extension
Description
This sample demonstrates how to customize and extend the view attributes pages and edit attributes pages. This sample contains the following two extensions:
- HideAttributeExtension—Shows how to prevent a particular attribute from being displayed and/or edited.
- FullNameExtension—Shows how to augment and/or replace the existing attributes for a feature; this extension displays two attributes, FirstName and LastName, as one attribute. To use FullNameExtension, you need to have a layer with a FirstName field and a LastName field.
Prerequisites
Product: ArcGIS Mobile
Platform: Windows
Requirements: Visual Studio 2008 (SP1), .NET Framework 3.5 (SP1)
How to use
- Open Visual Studio 2008 and load the sample project. See the Setting up Development Environment topic for instructions on how to set up your development machine.
- Compile the solution to create an assembly for the Mobile Project Center and an assembly for the Mobile application. Note:
Pre-built assemblies are included with the sample project.
- Deploy the mobile project assembly files to the <ArcGIS Mobile Project Center program folder>\Extensions and \Extensions\Win32 folders on your desktop where you'll author your mobile project with the Mobile Project Center application. See the Deploying Extensions section for details and path information.
- In Mobile Project Center, add HideAttributeExtension and FullNameExtension to your project on the Capabilities tab.
- Save and deploy your mobile project.
- Start the ArcGIS Mobile for Windows application.
- Open the mobile project. The view attributes and edit attributes pages are now customized.
Where to get the sample
The sample is available for download from ArcGIS Online.
1/7/2015