* Forms
1. After data is loaded. At the end of loading the form data, the following callback is invoked, which receives as a parameter the JSON object resulting from loading the form data:
jnu_loadUserCallBack(jsonObject);
The following example shows the error message sent by the service if some data is missing when the service is trying to process the data
function jnu_loadUserCallBack(json){
if(json.error){
errorMsg(json.error);
}
}
2. After data is sent to the service. When the data of the form is sent, the following callback is invoked, which receives as a parameter the JSON object resulting from the operations executed when sending data to the form
jnu_postUserCallBack(this,json);
The following example calls 12-perfilasociado report after the data has been sent to the backend:
function jnu_postUserCallBack(obj,json){
if(json.error == ""){
window.location.href = appName + "/rp/12-itf/12-perfilasociado";
}
}
* Reports
created with
HTML Designer .