Funcition with object
Funcition with object
Hello I am trying to mount my select and pass object without form editor since I am not able to capture the object inside the form the traditional way. I'm trying through another json object to load my obj, mount, put inside the function and get it on to, so below, but it turns out that the list does not appear, can you help me please?
`function getObjListAll(){
var getDataAjax = $.ajax({
url: "/financeiro/receitas/listAll",
}).done(function(obj) {
var listTR = new Array();
obj.data.forEach(function(data, i) {
var nomeTipoReceita = data.tipoReceitas[0].nome;
//Mont object
listTR[i] = { "label": "" + data.tipoReceitas[0].nome + "", "value" : "" + i + ""};
})
listTipoReceitas(listTR);
});
};`
function listTipoReceitas(listTR){
return listTR;
};
{
name: "tipoReceitas",
placeholder: 'Tipos', "type": "select", "ipOpts": listTipoReceitas()
},
Answers
Can you link to a page showing the issue so we can offer some help please? I'm not sure why that wouldn't be working.
Thanks,
Allan
Hello Allan, I am sending you the link of my application so that I take a look to see where the points I am having difficulties are. I would like it if I could give a review to see the points that can be improved. In addition to the list of objects that I can not see in the editor to insert next to the form, the list selects "Tipos" that are not being displayed and the other selects
ec2-34-224-214-123.compute-1.amazonaws.com:8080/demo/receitas
Sorry but I had to change the url:
ec2-52-91-50-157.compute-1.amazonaws.com:8080/financeiro/receitas
This looks like a duplicate of this thread. Please don't post duplicates.
Allan