I have this code for load a save form, api rest:
body:{
view:“form”,
id:“form_tipos”, url:“rest->url/noticiastipos/”+$$(‘dt_tipos’).getSelectedId(), save:“rest->url/noticiastipos”, elements:[
{ view:"text", id:"id", label:"Id:", hidden:true},
{ view:"text", id:"tipo", label:"Tipo", placeholder:"Tipo"},
{ margin:5, cols:[
{ view:"button", id:"aceptar", value:"Aceptar" , type:"form"}
]}
]
}
This return a json, because dont load nothing on form, this is the json returned: [{“id”:2,“tipo”:“CLIENTES”}] , how to load this in form? where in the problem?