I need create an GlideRecord for table X and queries but one of parameter is a condition type and other is table_name type because the query is dynamic.
if i trying, alert "invalid table name: null".
My code:
var tableQueried = new GlideRecord(current.u_ruta);
tableQueried.addQuery(current.u_filtro);
tableQueried.query();
I could solve this question, it turns out that the condition type field is treated as a string so it is very simple to use, there really was no need to post my question here.