Select to view content in your preferred language

ArcPad Studio- can I cause a form to load without creating an applet?

2659
2
09-24-2010 08:42 AM
PaulHarkins1
New Contributor
I am having a problem understanding how to cause my form to open up instead of the default attribute table when I add a point to my layer.  I have created a form for a Tree Inventory layer, but when I try to add a point in ArcPad 8 it still brings up the attributes table.

What am I missing here, how can this be done? I'm not a programmer and don't understand the nomenclature for the coding.
I read in another thread to rename my form EDITFORM and that should solve the problem, but it's not. I have no idea where to go from here!
Tags (3)
0 Kudos
2 Replies
EricHajek1
Regular Contributor
When you pull your AXF into ArcPad Studio, you should see the layer whose form you want to edit listed under "Feature Layers". Double click it to bring up that layer's customization. Under "<FORMS>" you should see one called
<EDITFORM>YourLayerName
and possibly another called
<FORM>Editform (if you renamed it to editform)
Here's what I'd try:
Click the red and blue arrow icon on the toolbar to change the view to XML.
Near the top, you'll probably see something like this:
<ArcPad>
<LAYER name="whatever">
<FORMS>
<EDITFORM .... various things
<PAGE .... various things

Scrolling down, you need to find the form you made. It will be listed as a regular <FORM ....

Find where the regular form closes itself, this looks like </FORM>
Now, copy everything between the <FORM> and the </FORM>, but not the lines with the <FORM> / </FORM> on them. (The first and last lines should be <PAGE> and </PAGE>)
Paste this selection into <EDITFORM> section, overriding everything between <EDITFORM> and </EDITFORM>.

Save, now click the red/blue arrow icon to get back to form view, and double click the <EDITFORM> icon, if it shows your custom form, you're good to go, and it will open when you edit a feature.

Hope this helps,
Eric
0 Kudos
PaulHarkins1
New Contributor
Eric,

Thanks so much, my co-worker and I had just come to a similar conclusion- although not from the coding side.  I have some background in html/xhtml coding and as this was my first use of Studio I didn't realize the code was accessible and that its xml! 

I really appreciate your response, it saved me a few extra hours of unnecessary work on a Friday afternoon!

~Eric
0 Kudos