loading table of contents...

2.12. FOREST_ELIMINAR_BORRADOR()

 
FOREST_ELIMINAR_BORRADOR
Elimina un borrador, con todas sus versiones.
Retorna: void 
Esta función no retorna valor
Parámetros:
integer  codigo
Código del borrador (codborr), obligatorio
Versión: 3.0+
 
Ejemplo:
var borrs = FOREST_SQL_COL_LIST("select b.codborr, b.* from gdo_grl_borrador b, gdo_tra_borrador_doc tb, gdo_sgc_edit_form ef, gdo_rel_tarea_tpl tp, gdo_tra_tareas tt where b.codinst = ? and b.version = 1 and b.codborr = tb.codborr and b.version = tb.version and b.codtpl = ef.codeditform and ef.codform = tp.codtpl and tp.codtare = tt.codtare and tt.codtraesc = ?", CurrentDesktop.codInst, CurrentDesktop.codTraEsc);
for (var i = 0; i < borrs.length; i++) {
FOREST_ELIMINAR_BORRADOR(borrs[i]);
}