Loading ...
Sorry, an error occurred while loading the content.

Re: [ydn-javascript] Re: DataTable Adding a Row

Expand Messages
  • Jim Siercke
    I will give it a try, it looks like what I am after. Thanks
    Message 1 of 3 , Aug 21 1:19 PM
    • 0 Attachment
      I will give it a try, it looks like what I am after. Thanks

      On Thu, Aug 21, 2008 at 1:17 PM, logicaloctopus <logicaloctopus@...> wrote:

      --- In ydn-javascript@yahoogroups.com, "Jim Siercke" <hfalaska@...> wrote:
      >
      > Hello All,
      >
      > Here is what I am trying to do and can't seem to get there. I would
      > like to be able to add a row and populate some of the columns with
      > data from a previous row. Now I know I can clone an entire row, but
      > can I get specific columns instead of all of them?
      >
      > Thanks
      >

      If elRow is the row from which you want to gather data you can do this:

      var elRow = <whichever row you want>
      var elRecord = this.getRecord(elRow);
      var col1 = elRecord.getData("col1");
      var col2 = elRecord.getData("col2");

      Does that help?


    Your message has been successfully submitted and would be delivered to recipients shortly.