2 Replies Latest reply on Oct 1, 2006 11:42 AM by Newsgroup_User

    Binding selectItem to cftextarea (datagrid)

    Level 7
      Using a datagrid, how can I bind data from the selected column to the
      cftexarea? I would like so when the user clicks on a row, it displays the
      'details' in the textarea. I tried to use the bind set to
      projecthistory.selectItem.details but it didn't work. The query GetHistory
      also pulls the 'details' but I haven't displayed them.

      I have this so far:
      <cfform action="" method="post" name="projecthistory" preservedata="true"
      format="flash" skin="haloblue" id="projecthistory" height="390">
      <cfformgroup type="panel" label="SoftProofs.com: Project
      Ticket History for '#GetHistory.title#'" height="370">
      <cfgrid name="history" format="flash" query="GetHistory"
      selectmode="row" enabled="yes" width="770" height="200" align="middle"
      sort="yes" visible="yes">
      <cfgridcolumn name="status" font="Verdana, Arial,
      Helvetica, sans-serif" fontsize="10" header="Project Status" display="yes"
      width="400">
      <cfgridcolumn name="date" font="Verdana, Arial, Helvetica,
      sans-serif" fontsize="10" header="Date Submitted:" mask="m/d/yyyy"
      display="yes" width="150">
      <cfgridcolumn name="signature" font="Verdana, Arial,
      Helvetica, sans-serif" fontsize="10" header="Signed By:" display="yes"
      width="200">
      </cfgrid>
      <cftextarea label="Ticket Details:" name="details" width="600"
      height="100">

      </cftextarea>
      </cfformgroup>
      </cfform>

      Thanks
      --
      Wally Kolcz
      Developer / Support


        • 1. Re: Binding selectItem to cftextarea (datagrid)
          Level 7
          Something like this.

          <cftextarea name="details" bind="{history.selectedItem.details}"
          label="Ticket Details:" width="600" height="100" rows="5" />

          "Wally Kolcz" <wkolcz@projectproofing.com> wrote in message
          news:efovvv$emk$1@forums.macromedia.com...
          > Using a datagrid, how can I bind data from the selected column to the
          > cftexarea? I would like so when the user clicks on a row, it displays the
          > 'details' in the textarea. I tried to use the bind set to
          > projecthistory.selectItem.details but it didn't work. The query GetHistory
          > also pulls the 'details' but I haven't displayed them.
          >
          > I have this so far:
          > <cfform action="" method="post" name="projecthistory" preservedata="true"
          > format="flash" skin="haloblue" id="projecthistory" height="390">
          > <cfformgroup type="panel" label="SoftProofs.com: Project
          > Ticket History for '#GetHistory.title#'" height="370">
          > <cfgrid name="history" format="flash" query="GetHistory"
          > selectmode="row" enabled="yes" width="770" height="200" align="middle"
          > sort="yes" visible="yes">
          > <cfgridcolumn name="status" font="Verdana, Arial,
          > Helvetica, sans-serif" fontsize="10" header="Project Status" display="yes"
          > width="400">
          > <cfgridcolumn name="date" font="Verdana, Arial,
          > Helvetica, sans-serif" fontsize="10" header="Date Submitted:"
          > mask="m/d/yyyy" display="yes" width="150">
          > <cfgridcolumn name="signature" font="Verdana, Arial,
          > Helvetica, sans-serif" fontsize="10" header="Signed By:" display="yes"
          > width="200">
          > </cfgrid>
          > <cftextarea label="Ticket Details:" name="details" width="600"
          > height="100">
          >
          > </cftextarea>
          > </cfformgroup>
          > </cfform>
          >
          > Thanks
          > --
          > Wally Kolcz
          > Developer / Support
          >


          • 2. Re: Binding selectItem to cftextarea (datagrid)
            Level 7
            Worked like a charm. Thanks!