Avatar

Not applicable

Dear BR,

Thanks for the quick reply and most useful example. I'll try to apply the same in to my form and look in to it.

But, I would like to know is what was the corrections you have made in the javascript. I am not wrong the code which you have written in the example pdf the same I had written, but it did not work for me! Please check the code below which I had written.

---------------------

StatesAndCities.#subform[0].StateName::change - (JavaScript, client)

var stateDataNode = xfa.resolveNode("StatesAndCities.States.(StateID.value == " + this.boundItem(xfa.event.change) + ")");

 
CityName.clearItems();

for (var i=0; i<stateDataNode.City.all.length; i++)
{
    xfa.host.messageBox(stateDataNode.Cities.all.item(i).Code.value);
   
    CityName.addItem(staffDataNode.City.all.item(i).Code.value);
}

---------------------

I'll look forward by highlighting my mistakes, so that I can go by my own.

Regards,

Sree Harshavardhana.