Dear all.
I have a Grid that start with search, only one field, after advanced search, appear the grid. Before that in onScriptInit event of GRID, insert a record in database, no problem with this, my real problem, is that I need reset the search form, like do clear button.
I have dealt with:
- Try to call limpa_form, javascript function in event onScriptInit of GRID with sc_ajax_javascript macro, but the result is that not found.
- Try create the same function with other name, but no recognizes
function PERS_limpa_form() {
document.F1.reset();
NM_apaga_erro();
nm_campos_between(document.getElementById(‘id_vis_reg_ip’), document.F1.reg_ip_cond, ‘reg_ip’);
document.F1.SC_reg_ip.value = “”;
document.F1.reg_ip_autocomp.value = “”;
}
fail in the first step, say that reset is not a function. - Try with document.getElementById(‘id_vis_reg_ip’).value="", but say that this object is not in the page.
Please, if any person know a way, please let me know how I can do this.
Thanks and regards,