Torvik
12-28-2007, 11:23 PM
So, I'm working with Adobe LiveCycle Designer which allows for programming with JavaScript. I'm not knowledgeable in the language, but I've been picking up things here and there.
I don't know how programming in LiveCycle is different from programming for the web. Hopefully this question will make sense here too. :)
I'm trying to populate a drop-down with a simple array of numbers, but I don't know how to make the array function work.
ex:
DropDown1 = Apple
DropDown2 = 1-20
DropDown1 = Orange
DropDown2 = 1-15
I'm using something like this:
if (this.rawValue == "apple") {
DropDown2.addItem(new Array(20));
if (this.rawValue == "orange") {
DropDown2.addItem(new Array(15));
Everything between
if (this.rawValue == "apple") {
DropDown2.addItem(
is right, but I don't know how to make the array work. Obviously something is missing, and I sure don't know what.
Is there a simple way where the array can populate itself?
Thanks so much!
Alan
I don't know how programming in LiveCycle is different from programming for the web. Hopefully this question will make sense here too. :)
I'm trying to populate a drop-down with a simple array of numbers, but I don't know how to make the array function work.
ex:
DropDown1 = Apple
DropDown2 = 1-20
DropDown1 = Orange
DropDown2 = 1-15
I'm using something like this:
if (this.rawValue == "apple") {
DropDown2.addItem(new Array(20));
if (this.rawValue == "orange") {
DropDown2.addItem(new Array(15));
Everything between
if (this.rawValue == "apple") {
DropDown2.addItem(
is right, but I don't know how to make the array work. Obviously something is missing, and I sure don't know what.
Is there a simple way where the array can populate itself?
Thanks so much!
Alan