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

14669Re: how to retrieve record from datatable row selection ?

Expand Messages
  • wyzfr
    Jun 19, 2007
      Hello.

      You're lucky, I already worked on it...

      function getSelectedRecord() {
      var rec = null;

      if (myDataTable) {
      var tab = myDataTable.getSelectedRecordIds();
      var lineID = tab[tab.length-1]; // The previous selected ids
      are kept and if we select a previous selected id it is moved at the
      end of the tab....
      if (lineID) rec = myDataTable.getRecordSet().getRecord(ligneID);
      }

      return rec;
      }

      Best regards.
    • Show all 3 messages in this topic