Select to view content in your preferred language

"Values" numbers populating my text dropdown list when creating combobox control

3986
2
01-16-2014 04:22 PM
RandallMoore
Deactivated User
Howdy,

I'm trying to create a relatively simple form in ArcPad studio.  I've run into a hitch in making a combobox list for my form:

I've called up a .dbf table to populate a combobox dropdown list in ArcPad studio. 

The .dbf table's columns are "Value" and "Species."  I choose "value" for the values field and "species" for the text field in the external list values of the control properties box.  So far so good.  It looks like this:
[ATTACH=CONFIG]30594[/ATTACH]

Problem is that when I check the form in ArcPad, the dropdown list is populated by the numbers in the .dbf's value field and not the species listed in the .dbf's species field.  Funny thing is, if I use exactly the same process in creating a simple listbox instead of a combobox, the list populates with the proper species list.  Here's a picture of the combobox and listbox on the form showing text in the listbox and a number in the combobox.
[ATTACH=CONFIG]30595[/ATTACH]

And here's a shot of the .dbf table, just in case that's useful.
[ATTACH=CONFIG]30596[/ATTACH]

Any ideas how to correct this weird situation would be much appreciated!

thanks,
Randy
Tags (4)
0 Kudos
2 Replies
by Anonymous User
Not applicable
Original User: Hornbydd

This is a problem with the combobox that dates back to version 6! Have a look at this thread.
0 Kudos
RandallMoore
Deactivated User
Thanks for the reply, Duncan.  I couldn't quite make heads or tails of the problem in that thread, but I did manage to make my combobox work using the seat-of-my-pants method.

Since the "values" numbers were showing up where my "text" was supposed to be in my combobox list, I just switched my "values" and "text" fields in the "external list values" window of the control properties box.  Where that window wants numeric "values" (or so I thought), I told it to use my .dbf "text" field.  Where it wanted "text", I told it to use the numeric "values".  See below:
[ATTACH=CONFIG]30609[/ATTACH]

It now displays perfectly in the form, go figure.

I have, however, run into another roadblock if you'd like to take a crack at that!  See this post: http://forums.arcgis.com/threads/100934-Easy-form-creation-question-for-you-ArcPad-studio-experts?p=...

thanks again,
Randy
0 Kudos