In a form I'm creating, the user chooses a code from a drop-down box. This populates another drop down box with the name of the appropriate person for that code. Each person handles multiple codes. Right now, I have an extended switch/case statement handling it, like this:
switch(this.RawValue) {
case "Code 1":
case "Code 2":
case "Code 3":
personNameField = "Joe Smith";
break;
case "Code 4":
case "Code 5":
personNameField = "Mary Quick";
break
------
I've been asked to add a second person-name field, but here, each individual code could have a different Person1 and Person2, so I can't have my nice lists of Code 1-Code 3, Code 4-Code 5. This causes a big problem when I'm dealing with several hundred codes. Instead of a run of 35 codes handled by Joe Smith, I'll need to have script handling each one of those 35, because the first is Joe Smith + John Doe, the next is Joe Smith + Frank Example, etc.
Is there some way to use an array to handle this? I think that it would be more efficient to have the first and second person fields look up their value from a table, but I don't know how that works in LiveCycle Designer.
Thanks,
SLDC
George Kaiser