I'm having trouble getting the data table reference if I run in the background. Anyone know how to get around this?
names default to here(1);
sql_query = New SQL Query(
Connection(
"ODBC:DSN=Test Source;DATABASE=Test;"
),
QueryName( "Thingy" ),
Select(
blah
),
From(
other blah
)
);
sql_query << Run Background(
OnRunComplete(
dt = queryResult;
dt = data table(queryResult<<Get Name);
show(dt); //shows correctly for either one
)
);
show(dt); // it seems like on run complete is local