Hi, I need to obtain the result of an API query to create and return a new array of objects in a javascript variable of the Form Designer.
I have a custom query that has as parameter the userId but I need to save in an array all the queries of the manager of those userId.
ex.
var inspectores = $data.InspectoresZonales;
var resultado = [];
var obrasinspector = [];
for (var inspector in inspectores)
obrasinspector.push(get("http://localhost:8080/bonita/API/bdm/businessData/com.company.model_Proyectos.Proyectos?q=xInspectorAscOk&p=0&c=100&f=Inspector="+inspectores[inspector].id));
for(var obra in obrasinspector)
resultado.push(obras[obra]);
return resultado;
the main problem is that I can not get the data from the url.
Please , how can I solve it?
thank in avance
Juan