setOnRecordSelectionMethod(Function method) is void, meaning it does not return anything. So aa will not receive anything from that call. If you have a look in the status area of the method editor and have clicked on setOnRecordSelection(), you will see a tooltip describing the method and you will also see void. You can always determine from the keyword in front of a method what it does return or that it does not return anything (void).
In the end, you want that your method “onRecordSelection” is called. Now you should make an output in that method like
application.output("onRecordSelection called")
and see if you get that output once you selected a row by clicking on it.
I have an output in that method, but I think it doesn’t even enter the method.
here is the onRecordSelection method:
/*
The method that is set using setOnRecordSelectionMethod
As arguments the row in the dataset or data array and
the data of that row will be returned. If the table is
sorted some way, the returned row is different from the
row on screen.
*/
//var vRow = arguments[0],
// vRowData = arguments[1];
application.output("test" )