can we return multiple values from dbtreeview click?

Hi

Does anyone know if it is possible to return multiple column values when setting the onClickMethod?

The table I am using for the tree view is a multi-key based table and I need both values to act on the selection.

eg.
1 value works
binding.setMethodToCallOnClick(onNodeClick , ‘id_1’);

2 values not working
binding.setMethodToCallOnClick(onNodeClick , ‘id_1’, ‘id_2’);

Thanks

I believe you can do it through an unstored table calc. The way I did it is by concatenating 2 strings with a comma in between and doing a split when you need it. if you bind it like this:

binding.setMethodToCallOnClick(onNodeClick , ‘yourCalc’);

and then in the calculation return:

return id_1 + ‘,’ + id_2;

and finally in the method:

var dataArray = dataString.split(‘,’);