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

14667how to retrieve record from datatable row selection ?

Expand Messages
  • capitch01
    Jun 19, 2007
    • 0 Attachment

      I can't manage to retrieve the record corresponding to the selected row.

      I need to retrieve this record because when I populated my table, I
      added some hidden fields. So now these field are contained in the
      record, but not in the HTML.

      Here is the code of the row selection handler :

      var select = function(event , target) {
      myTable.onEventSelectRow(event, target); // run the default handler,
      not important
      var selected = tableGroups.getSelectedRecordIds();
      if (selected.length==0) {
      var record = myTable.getRecordSet().getRecord(selected[0]);

      The function always return error. the Id array len is always 0. But
      I'm sure that at this point the selection is made :If I use the
      function getSelectedRows(), it return an array of one HTML element.
      Still from this html element, I've no idea how the get the
      corresponding record. The record identifiers doesn't correspond to the
      html element IDs..

      thanks in advance for help !

    • Show all 3 messages in this topic