0 Replies Latest reply on Oct 19, 2006 3:34 PM by Hydrowizard

    Outputting one cfselect fine now two

    Hydrowizard Level 1
      Hi all,
      I am using coldfusion cfform in flash format -maybe this is the place to come for an actionscript question. The cfgrid tag works fine for one field the "state" field output with cfselect with the following onchange actionscript:
      <cfform format="Flash" skin="haloblue">
      <cfgrid name="UsersGrid" format="Flash"
      query="qNames" rowheaders="No"
      onchange="for (var i:Number = 0; i<state.length; i++) {if (state.getItemAt( ).data == UsersGrid.selectedItem.state) state.selectedIndex = i}">

      What I want to get is
      onchange="for (var i:Number = 0; i<state.length; i++) {if (state.getItemAt(
      ).data == UsersGrid.selectedItem.state) state.selectedIndex = i}"
      AND
      onchange="for (var i:Number = 0; i<meetingtime.length; i++) {if (meetingtime.getItemAt( ).data == UsersGrid.selectedItem.meetingtime) meetingtime.selectedIndex = i}">

      so I can connect to my meetingtime field and db field. I just don´t know how , thank you for any help.
      <cfgridcolumn name="FIRSTNAME" header="Contact Name">
      <cfgridcolumn name="ENTID" display="FALSE">
      <cfgridcolumn name="state" header="Next Step">
      </cfgrid>


      <cfformgroup type="tabnavigator">
      <cfformgroup type="page" label="Details: #dateFormat(now(), 'mmm dd, yyyy')#">
      <cfformgroup type="horizontal">
      <cfinput type="text" name="FIRSTNAME" label="First Name"
      bind="{UsersGrid.dataProvider[UsersGrid.selectedIndex]['FIRSTNAME']}"
      onChange="UsersGrid.dataProvider.editField(UsersGrid.selectedIndex, 'FIRSTNAME', FIRSTNAME.text);">


      <cfselect name="state" width="200" size="1" label="Next Step" onchange="UsersGrid.dataProvider.editField(UsersGrid.selectedIndex, 'state', state.selectedItem.data);">
      <option value="nulo">None</OPTION>
      <option value="SEND STUDY">SEND STUDY</OPTION>
      <option value="SEND PROPOSAL">SEND PROPOSAL</OPTION>
      <option value="CALL AND EMAIL">CALL AND EMAIL</OPTION>
      <option value="CALL">CALL</OPTION>
      <option value="SEND PRESENTATION">SEND PRESENTATION</OPTION>
      <option value="MEETING">MEETING</OPTION>
      </cfselect>

      <cfinput type="hidden" name="ENTID" label="ENTID"
      bind="{UsersGrid.dataProvider[UsersGrid.selectedIndex]['ENTID']}"
      onChange="UsersGrid.dataProvider.editField(UsersGrid.selectedIndex, 'ENTID', ENTID.text);">

      </cfformgroup>
      </cfform>