'Default Row' property does not work in table component

@Paulo I tried that but it didn't seem to work consistently. I ended up putting the query trigger and the selectRow in some javascript and then running the javascript during page load. That seems to work all the time.

Here is the script i used.

function triggerAndSelectJurisdiction() {
  getJurisdictionbyID.trigger({
    onSuccess: () => {
      const firstRow = tbl_jurisdiction_detail.getDisplayedData({ includeHiddenColumns: false })[0];
      if (firstRow) {
        tbl_jurisdiction_detail.selectRow({ mode: 'key', key: firstRow.jurisdiction_id });
      }
    }
  });
}

return triggerAndSelectJurisdiction();
``'
1 Like