API Name: global.getSchemaAttributeColumnOnTable

function getSchemaAttributeColumnOnTable() {
var query = 'internal_type!=collection';
if (current.on_table)
query += '^name=' + current.on_table.name;

return query;
}