var vItems = xfa.resolveNodes("People.Person[*]");
for(i=0; i<vItems.length; i++)
var name = vItems.item(i).DisplayName.rawValue;
if (name != null)
This works perfectly. I can select any of the "DisplayName"s listed under the repeatable "Person" subform.
My problem is that it seems dynamically generating the possible values like this prevents me from reading the rawValue of the drop down. For example, I put the following in a button ("PersonName" is the dynamic drop down I'm working with):
When I click the button, nothing happens. if I point it at a different drop down that had their items defined statically within the GUI, the message box pops up and shows the current value, as expected.
The same goes for selectedIndex, boundItem, and pretty much everything else I've tried. What makes it stranger is that I'm still able to programatically set the rawValue... i.e.:
PersonName.rawValue = "Test";
What am I doing wrong here? I've even enabled debugging and watched for any exceptions... nothing. Any code I write that tries to read from a drop down whose values are generated at run time just doesn't seem to execute.
I would appreciate any help that you guys might be able to offer. Thanks!
I don't know what could be causing the problem, I have not had any problems referencing values from a programmatically loaded drop down list. Can you share your form? (host it somewhere, like google docs, and add a link to it in this thread)