Select to view content in your preferred language

AXF- no default values in Arcpad

726
3
07-29-2010 10:33 AM
AaronWorthley
Emerging Contributor
I have a fGDB with subtypes and domains with default values.  I'd like to have the default values populate a field based on the subtype selected.  This is working fine in Arcmap when working directly with the GDB, but when checked out to an axf, the default values are not populating the field when a new feature is created in arcpad.  Am I doing something wrong in the check-out, or are geodatabase default values not supported?
Tags (3)
0 Kudos
3 Replies
GarethWalters
Deactivated User
Hi Aaron,

At the moment ArcPad does not honour the domain defaults based in the SubTypes menu. If you set the domain defaults on the fields menu for domains it will honour those.

Hope this helps.
0 Kudos
JanBorovanský
Esri Contributor
Hi Aaron,

it does but you should not use AXF file or better to say ArcPad Data Manager when extracting data for ArcPad. I would recommend standard ArcPad toolbar - this exports data to shapefile, but I was surprised, this holds the subtypes + default values for the subtypes. Even the standalone SHP, not only the apm project file. You can use this as a possible workaround.

Regards,
Jan B.
0 Kudos
EricHajek1
Regular Contributor
Hi, I also find this a pain, but here's an alternate work around if you don't want to mess with shapefiles.

Here's a sub from the Riverside developer's sample:

Sub SetCombo(cbx, item)
 Dim index
 
 For index = 0 to cbx.ListCount - 1
  cbx.ListIndex = index
  If (CStr(cbx.value) = item) Then
   Exit Sub
  End If
 next
 cbx.ListIndex = -1
End Sub


You can just feed it default values in the onload event of your form:
SetCombo EForm.Pages("Page1").Controls("cboWALL_MATERIAL"), "CON"


Note: I use comboboxes instead of domainfields because I hate the dropdown delay from domainfields, so I haven't verified that this works with domainfield controls, though I think it does. Also, I'm not sure how it interacts with subtypes. I would imagine that it would, assuming the default value is part of the domain of the currently selected subtype.
0 Kudos