8 Replies Latest reply: Apr 18, 2012 1:40 AM by noos76 RSS

    dynamically change the caption to the radio button

    noos76

      hello you can change the caption for the radio button dynamically? within a loop?

       

      I tried these 5 education but do not work:


          list.RadioButtonList.nomelist.resolveNode("caption.value.#text").value = xfa.record.modulo.list.nodes.item(i).nomelist.code.value;

          list.RadioButtonList.nomelist.selectedMember().caption.value.text.value = xfa.record.modulo.list.nodes.item(i).nomelist.code.value;

          ListOggetto.resolveNode("caption.value.#text").value = xfa.record.modulo.list.nodes.item(i).nomelist.code.value;

          ListOggetto.selectedMember().caption.value.text.value = xfa.record.modulo.list.nodes.item(i).nomelist.code.value;

          list.RadioButtonList.nomelist.caption.value.resolveNode("#text").value = xfa.record.modulo.list.nodes.item(i).nomelist.code.value;

       

      this code:

      //file xml

      var numero = xfa.record.modulo.list.nodes.length;

       

      for(i=0; i<numero; i++){

       

          var ListOggetto = xfa.resolveNode("list.RadioButtonList.nomelist["+i+"]");

         

          list.RadioButtonList.nomelist.resolveNode("caption.value.#text").value = xfa.record.modulo.list.nodes.item(i).nomelist.code.value;

          list.RadioButtonList.nomelist.selectedMember().caption.value.text.value = xfa.record.modulo.list.nodes.item(i).nomelist.code.value;

          ListOggetto.resolveNode("caption.value.#text").value = xfa.record.modulo.list.nodes.item(i).nomelist.code.value;

          ListOggetto.selectedMember().caption.value.text.value = xfa.record.modulo.list.nodes.item(i).nomelist.code.value;

          list.RadioButtonList.nomelist.caption.value.resolveNode("#text").value = xfa.record.modulo.list.nodes.item(i).nomelist.code.value;

       

      }