select row from data table after load

i can’t select from a table that i just reloaded using this code ,
var id_var = $$(“table1”).getSelectedId();
$$(“table1”).clearAll();
$$(“table1”).load(("./Connector/table.cfm"), “xml”);
$$(“table1”).select(id_var,false);

Data loading is async, use the callback of load method

$$("table1").load(("./Connector/table.cfm"), "xml", function(){
  $$("table1").select(id_var,false);
});

now i am having another problem , i have an event listener on the table1 table it is an (onAfterSelect) event that loads another table in another view, here is the code in it.
id2 = $$(“table1”).getSelectedId();
$$(“table2”).clearAll();
$$(“table2”).load(("./Connector/table2.cfm?bid="+id2), “xml”);

after doing this i get this error “Cannot convert object to primitive value”

Above code works fine for me. Still you can try to use

$$(“table2”).load(("./Connector/table2.cfm?bid="+id2.row), “xml”);

Selected id in case of datatable is an object, but it has correct toString method, so your original line must work correctly as well.

In which browser issue does occur ?

thanks, it worked perfectly after adding the .row
i’m using google chrome