The following example obtains the name of each uploaded table in a single upload transaction:
import ianywhere.ml.script.*;
import java.sql.*;
// The method used for the handle_UploadData event.
public void HandleUpload(UploadData ud) {
throws SQLException, IOException
{
int i;
// Get UploadedTableData instances.
UploadedTableData tables[] = ud.getUploadedTables();
for (i=0; i<tables.length; i+=1) {
// Get the table name.
String table_name = tables[i].getName();
// ...
}
}