Select to view content in your preferred language

Modifying the Combobox

3040
2
09-29-2015 07:24 AM
MeghnaNatraj
Deactivated User

Hi,

I am working on having a filter feature in the combobox in ArcpPad,i.e based on the text entered by the user in the "Text" field , I want to show only those options that contain that text as a substring.

I have completed performing this action but once a user enters a text, and i update the list, the text entered by the user gets deleted.

So now if i want to set the text field of the combobox back to the data entered by the user, it prevents me from updating the text field.

I get the error "Class does not support automation"

How do i modify the contents of this Text Field?

Let me know if you need more data to debug this issue.

Tags (2)
0 Kudos
2 Replies
NICOLAPEDDIS
Deactivated User

I suggest you to use arcgis/arcmap and build a mobile geodb axf with the domains.

You can easly build a combobox, then the user can use the axf in the field and add also a different text. When you go in the office and open the axf you will find also the new text in the mobile geodb

0 Kudos
MeghnaNatraj
Deactivated User

Thanks Nicola, I will look into this.

I have a doubt however!

I read 2 forums

1) ArcPad Developer Help - Concepts (I read on this forum that the comboBox.Text only returns a value but it cannot be set.)

2) GeoNet Forum

Comment made by a user known as  "jason.tipton.gis:

"So, long story short, comboBox.value = x or comboBox.text = x probably should be something to avoid.  Therefore, you have to use comboBox.ListIndex to change the selection. It seems you can always say x = comboBox.value or x = comboBox.text, but not the other way.

And yes, I have logged a bug."

From these 2 , I Infer that we cannot set the text field of a combobox in ArcPad but we read its contents. Is that correct?

Is there any way to set the contents somehow?

Also I am not familiar with building a mobile geodb axf , I will look into it and post back on this thread if i have any doubts! Hope you can help me out?

0 Kudos