Returning a dataset in from a plugin function is allready possible for a long time:
public JSDataSet js_xxx()
{
Object[] oa = null;
Vector v = new Vector();
String[] s = new String["row1","row2","row3"]
BufferedDataSet bds = new BufferedDataSet(new String[]{"columnName"},v);
for (int i = 0; i < s.length; i++)
{
oa = new Object[1];
oa[0] = s[i];
bds.addRow(oa);
oa = null;
}
JSDataSet jsds = new JSDataSet(bds);
return jsds;
Paul