0 Replies Latest reply on Aug 26, 2010 10:46 PM by welcomecan

    i need dynamic form string validation?

    welcomecan Level 1

      hai friends,

       

      dynamic form string validation for

       

       

      below code

       

      var

       

       

       

       

       

      resdata1:ArrayCollection=event.result.RES1;

       

      for(i=0;i<resdata1.length;i++)

      {

      pn.visible=

      false;

       

      var formlabel:String= resdata1[i].spk_name;

       

      frmitem =

      new FormItem();

      frmitem.direction =

      "horizontal";

      frmitem.required=

      true;

      frmitem.label = formlabel;

       

      if(resdata1[i].hasOptionsList==null)

      {

       

      txtinput =

      new TextInput();

      txtinput.id= "txt"+resdata1[i].spk_name;

       

      frmitem.addChild(txtinput);

      }

       

      else

      {

       

      newcb=

       

      new ComboBox();

       

      var tempdata:ArrayCollection=resdata1[i].ruleName;

       

      //newcb.dataProvider=bindata;

      newcb.dataProvider=tempdata;

      newcb.labelField=

       

      "spko_value";

      frmitem.addChild(newcb);

      }

      FormContainer.addChild(frmitem);

      pn.visible=

      true;

      pn.title=resdata1[0].ProfileName;

      }

      }