PM 356 "El boton Save no ejecuta ninguna..." SOLVED

Code Issue:
El boton "Save" no ejecuta ninguna accion en Process Events/Trigger Script
Cause:
Cuando se crea un nuevo Events de tipo Intermediate Conditional o Intermediate timer, en dynaform New Event al hacer click
en Save no se guardaban los datos mostrando un error.
Solution:
En el dynaform New Events en los labels Execute trigger en el dropdown se adiciona un label "Create a new trigger" y en el
"Estimated Task duration" e añ el "*" como campo requerido, tambien se adiciono la validacion de los campos requerridos
con sus respectivos mensajes y el error que ocacionaba al guardar los datos se elimina la condicion que se tenia.
This commit is contained in:
Luis Fernando Saisa Lopez
2014-10-22 14:11:07 -04:00
parent edf36f9600
commit 83a2ecc61b
6 changed files with 35 additions and 12 deletions

View File

@@ -9,6 +9,16 @@ var eventsNewAction = function(oForm) {
return false;
}
if (getField("EVN_TAS_ESTIMATED_DURATION").value.trim() == "") {
msgBox("Set a estimated task duration please.", "alert");
return false;
}
if (getField("EVN_WHEN").value.trim() == ""){
msgBox("Set a days please.", "alert");
return false;
}
if (oForm) {
oRPC = new leimnud.module.rpc.xmlhttp({
url : '../events/eventsNewAction',