Description:
I am trying to dynamically populate a TextComboBoxWidget with values from a database. These values will be different from one customer's computer to the next, as they are user-defined (i.e., out of my control). So it is impossible for me to hardcode all potential values in a string table in the resource file. I am using stringListControlData->AddString(DBValue, IStringListControlData::kEnd, kFalse, kFalse) to populate the combo widget, but it apparently won't allow this unless I have defined all values that DBValue can assume in the .fr file.
Troubleshooting:
I have searched the User Forums for the following and found only one somewhat relevant link:
Searches:
"no translation of key to English string"
"hardcode string"
"dynamically populate combo box"
Link:
http://www.adobeforums.com/cgi-bin/webx/.3bbe8d09/2
The tips I got from the above link showed me how to populate the combo box with IStringListControlData, but I didn't see any help on the "hardcoding" part.
Searching the API and reference PDF's only seem to point to the necessity of defining all strings in a string table.
Questions:
1. How can I get around this "hardcoding" restriction?
2. I would have thought that setting the last 2 parameters in stringListControlData->AddString() to kFalse would somehow circumvent the "validation" and "notification" of the string value being added, but no. I still get the "No translation of key to English string" message. So what are these last two parameters for?
Thanks,
Miles Davis
I am trying to dynamically populate a TextComboBoxWidget with values from a database. These values will be different from one customer's computer to the next, as they are user-defined (i.e., out of my control). So it is impossible for me to hardcode all potential values in a string table in the resource file. I am using stringListControlData->AddString(DBValue, IStringListControlData::kEnd, kFalse, kFalse) to populate the combo widget, but it apparently won't allow this unless I have defined all values that DBValue can assume in the .fr file.
Troubleshooting:
I have searched the User Forums for the following and found only one somewhat relevant link:
Searches:
"no translation of key to English string"
"hardcode string"
"dynamically populate combo box"
Link:
http://www.adobeforums.com/cgi-bin/webx/.3bbe8d09/2
The tips I got from the above link showed me how to populate the combo box with IStringListControlData, but I didn't see any help on the "hardcoding" part.
Searching the API and reference PDF's only seem to point to the necessity of defining all strings in a string table.
Questions:
1. How can I get around this "hardcoding" restriction?
2. I would have thought that setting the last 2 parameters in stringListControlData->AddString() to kFalse would somehow circumvent the "validation" and "notification" of the string value being added, but no. I still get the "No translation of key to English string" message. So what are these last two parameters for?
Thanks,
Miles Davis