Commit Graph

122 Commits

Author SHA1 Message Date
jennylee
cb7742ae05 BUG-13606 Agregar el caracter '+' en campos tipo text - email.
Cambio de la expresion regular para permitir el ingreso del simbolo '+' en un campo tipo texto con validacion email. Se agrego tambien una validacion para permitir el ingreso de dicho simbolo por teclado tomando en cuenta si valor ascii.
2013-12-13 16:18:22 -04:00
Luis Fernando Saisa Lopez
dd65bd3680 BUG 12115 "Impresion de Procesos" SOLVED
- Impresion de Procesos.
- Problema:

  Cuando se inicia un caso y se quiere imprimir el dynaform hacemos click en el icono "Print form", luego nos aparece
  una ventana donde se muestra lo que se va a imprimir, normalmente al iniciar un nuevo caso, nos nuestra la hoja de
  impresion vacia, ya que no se han guardado los datos en la Base de Datos, en otros casos muestra la hoja de impresion
  con datos.

  Cuando se inicia un caso y se llena datos en el dynaform y se hace click en el icono "Print form", los datos introducidos
  no se muestran en la hoja de impresion.

  Solucion:

  Se agrega un nuevo metodo el cual permite validar con un "Confirm", cuando se quiera imprimir un dynaform al hacer click
  en "Cancel" en la hoja de impresion se mostrara vacia tal cual se tenia inicialmente, al hacer click en "Accept" se guardara
  los datos y en la hoja de impresion aparecera los datos.

  Se agrego el siguiente metodo en el archivo "form.js":

  function dynaFormPrint(..., ..., .., .., ...)
  {
      ...
      if (dynaFormChanged(frm)) {
         ...
         new leimnud.module.app.confirm().make({
             label: _("ID_SAVE_DYNAFORM_INFORMATION_BEFORE_PRINTING"),

             action: function ()
             { ...
             },

             cancel: function()
             { ...
             }
         });
     }
  }
2013-11-04 12:29:50 -04:00
Luis Fernando Saisa Lopez
f692dab57e BUG 12115 "Impresion de Procesos" SOLVED
- Impresion de Procesos.
- Problema:
  Cuando se inicia un caso y se quiere imprimir el dynaform hacemos click en el icono "Print form", luego nos aparece
  una ventana donde se muestra lo que se va a imprimir, normalmente al iniciar un nuevo caso, nos nuestra la hoja de
  impresion vacia, ya que no se han guardado los datos en la Base de Datos, en otros casos muestra la hoja de impresion
  con datos.
  Cuando se inicia un caso y se llena datos en el dynaform y se hace click en el icono "Print form", los datos introducidos
  no se muestran en la hoja de impresion.
  Solucion:
  Se agrega un nuevo metodo el cual permite validar con un "Confirm", cuando se quiera imprimir un dynaform al hacer click
  en "Cancel" en la hoja de impresion se mostrara vacia tal cual se tenia inicialmente, al hacer click en "Accept" se guardara
  los datos y en la hoja de impresion aparecera los datos.
  Se agrego el siguiente metodo en el archivo "form.js":

  function dynaFormPrint(..., ..., .., .., ...)
  {
      ...
      if (dynaFormChanged(frm)) {
         ...
         new leimnud.module.app.confirm().make({
             label: _("ID_SAVE_DYNAFORM_INFORMATION_BEFORE_PRINTING"),

             action: function ()
             { ...
             },

             cancel: function()
             { ...
             }
         });
     }
  }
  Disponible para la version 2.5.2
2013-11-01 09:18:10 -04:00
Luis Fernando Saisa Lopez
032b704fb9 BUG 12115 "Impresion de Procesos" SOLVED
- Impresion de Procesos.
- Problema:
  Cuando se inicia un caso y se quiere imprimir el dynaform hacemos click en el icono "Print form", luego nos aparece
  una ventana donde se muestra lo que se va a imprimir, normalmente al iniciar un nuevo caso, nos nuestra la hoja de
  impresion vacia, ya que no se han guardado los datos en la Base de Datos, en otros casos muestra la hoja de impresion
  con datos.

  Cuando se inicia un caso y se llena datos en el dynaform y se hace click en el icono "Print form", los datos introducidos
  no se muestran en la hoja de impresion.

  Solucion:
  Se agrega un nuevo metodo el cual permite validar con un "Confirm", cuando se quiera imprimir un dynaform al hacer click
  en "Cancel" en la hoja de impresion se mostrara vacia tal cual se tenia inicialmente, al hacer click en "Accept" se guardara
  los datos y en la hoja de impresion aparecera los datos.

  Se agrego el siguiente metodo en el archivo "form.js":

  function dynaFormPrint(..., ..., ...)
  { ...
    if (flagRequiredField == 1) {
        ...
        new leimnud.module.app.confirm().make({
            label: _("ID_DYNAFORM_SAVE_CHANGES"),

            action: function ()
            { ...
            },

            cancel: function()
            { ...
            }
        });
    }
  }
2013-10-29 14:04:25 -04:00
Luis Fernando Saisa Lopez
2ae6da9f10 BUG 12738 "SQL doesn't work in GRID - Text-Area..." SOLVED
- SQL doesn't work in GRID - Text-Area fields.
- Problema:
  Al crear una dependencia entre un Dropdown y Textarea en un grid, al añrlo a un Dynaform y ejecutar el caso,
  la dependiencia no funcionaba, al seleccionar una opcion del Dropdown en el textarea no se mostraba ningun valor,
  y al adicionar mas filas igual no funcionaba.

  Solucion:
  El problema es el siguiente: en la clase "class XmlForm_Field_Textarea" en su metodo "renderGrid" no estaba definido
  variables de importancia y seteo de las mismas, se completo las variables faltantes.

  Otro de los problemas que ocasionaba esta dificultad estaba en el archivo JavaScript en el metodo "updateDepententFields"
  se agrego una validacion cuando es un campo de tipo "textarea", esto porque no se podia utilizar el metodo "G_TextArea"
  que tambien le faltaba codigo, colocando este codigo faltante tampoco funcionaba.

  Al crear una dependencia entre un Dropdown y Textarea en un grid la añrlo a un Dynaform, y ejecutar el caso,
  dependiencia funciona correctamente.

  Se agrego el siguiente codigo en la clase "class XmlForm_Field_Textarea" en el metodo "renderGrid":
    ...
    $this->executeSQL($owner, $r);
    if (isset($this->sqlOption)) {
        $firstElement = key($this->sqlOption);
    }
    if (isset($firstElement)) {
        $v = $firstElement;
    }
    $arrayOptions[$r] = $v;
    ...
    $this->options = $arrayOptions;
    ...
  Disponible para la version 2.5.2
2013-10-24 17:00:32 -04:00
Hector Cortez
172afce21d BUG 10250 E-mail validation do not work with dot info SOLVED
- Put a Textbox on a dynaform. Set its validation as email.
- Changed regular expresion for validation dot information EMail.
2013-07-18 12:10:55 -04:00
Julio Cesar Laura
83de220474 Improvement in use of the var __dynaformSVal__ 2013-06-28 16:57:43 -04:00
Julio Cesar Laura
ed825c4f81 BUG 11068 Intermediate Message Event Does not fire on first Task in Sub Process IMPROVEMENT
- El bug se debe a un cambio originado para la validacion de los botones submit (evitar que se haga submit 2 veces)

- Se agregaron las validaciones correspondientes para que no de problemas con la nueva validacion
2013-06-25 16:59:15 -04:00
Luis Fernando Saisa Lopez
33bf6357c5 BUG 11951 "Los campos requeridos que aceptan caracteres..." SOLVED
- Los campos requeridos que aceptan caracteres alfanumericos, no validan los espacios.
- Problema resuelto, en los campos requeridos de tipo alfanumericos, se validan los espacios en blanco si son
  ingresados como unico valor en el campo.
* Available from version ProcessMaker-2.5.1-testing.2
2013-05-31 17:11:20 +00:00
Luis Fernando Saisa Lopez
a25ad60fd2 BUG 11793 "Los botones tipo SUBMIT de los formularios, no..." SOLVED
- Los botones tipo SUBMIT de los formularios, no llegan en el array del POST.
- Problema resuelto, los botones tipo Submit ahora son enviados con el formulario.
* Available from version ProcessMaker-2.0.47 (2.5.1)
2013-05-21 19:43:55 +00:00
ralpheav
bbe932368a BUG 9837: "Date Field, default today wrong Date %d.%m.%Y"
Sol: Data lenght is no the correct one, '.' was removed from masked string data.
2013-05-20 16:03:54 -04:00
Hector Cortez
93fd99b602 BUG 0000 Rad Map Perdida de sesion cuando se ejecuta casos SOLVED
- Use another variable name, like __dynaformSVal__, __usernameLogged__ to prevent that someone overwrite the value.
- Rename variables to avoid duplicates.
2013-05-16 10:40:08 -04:00
Hector Cortez
d44e0f10a6 BUG 0000 Rad Map Perdida de sesion cuando se ejecuta casos SOLVED
- Added Login modal to continue the session for dynaforms in cases.
2013-05-14 13:53:22 -04:00
Victor Saisa Lopez
3cd724a9ed BUG 10920 "Add subtitles inside a drop-down" SOLVED
- New feature, add subtitles inside a drop-down
- Solved problem, added grouping elements in DropDowns
- If a DropDown has enabled optgroup, an example with SQL would be the following:
    (SELECT 'optgroup1' AS UID, 'Users' AS NAME)
    UNION
    (SELECT USR.USR_UID AS UID, USR.USR_USERNAME AS NAME
     FROM   USERS AS USR
     WHERE  USR.USR_USERNAME <> '' AND USR.USR_USERNAME LIKE 'u%'
    )
    UNION
    (SELECT 'optgroup2' AS UID, 'Countries' AS NAME)
    UNION
    (SELECT COUNTRY.IC_UID AS UID, COUNTRY.IC_NAME AS NAME
     FROM   ISO_COUNTRY AS COUNTRY
     WHERE  COUNTRY.IC_NAME LIKE 'b%'
    )
* Available from version ProcessMaker-2.0.47 (2.5.1)
2013-03-27 09:57:22 -04:00
Victor Saisa Lopez
8d748e650c BUG 0000 "Problem with negative character in masks" SOLVED
- Problem with negative character in masks
- Solved problem with negative character in masks, if the negative
  character is not in the same mask is accepted data input by keyboard
* Available from version ProcessMaker-2.0.46
2013-03-14 19:01:24 -04:00
Marco Antonio Nina
2c0cb2db03 Improvement Text field doesn't permite negative numbers
- Text field doesn't permite negative number.
		- Was add validate in text field and validate Rela and Integert.
2013-02-26 12:51:50 -04:00
Julio Cesar Laura
ab3036f023 BUG 10875 The saveForm Javascript function runs "Before Assignment" triggers as long as the form passes validation SOLVED
- We reused the file cases_SaveData.php file to save data by ajax
- We created a new file saveForm.php to save data by ajax
2013-02-22 16:25:34 -04:00
Julio Cesar Laura
b8c74d14db BUG 9886 Duplicated cases when clicking various times in the submit button IMPROVEMENT 2013-02-01 00:16:58 -04:00
Julio Cesar Laura
a1e527265c BUG 10396 Mensaje de Invalid Response al crear Dynaform SOLVED
- Missing validation when session is expired
- Add validation when session is expired
2013-01-28 20:41:39 -04:00
Victor Saisa Lopez
f871d9fded BUG 0000 "Problem in dependent fields with suggest field in grids" SOLVED
- Problem in dependent fields with suggest field in grids
- Solved problem in dependent fields with suggest field in grids
- The QA team should test with (in grids):
    suggest  -> suggest  -> suggest
    suggest  -> dropdown -> suggest
    dropdown -> suggest  -> suggest
    dropdown -> suggest  -> dropdown
    text     -> suggest  -> suggest
    text     -> suggest  -> text
    * Browsers IE7, IE8, IE9, Firefox and Chrome
* Available from version ProcessMaker-2.0.46
2013-01-18 19:12:32 -04:00
Hector Cortez
35b123268d BUG 10253 Error al usar Dependent fields con Suggest field SOLVED
- El proceso adjunto muestra el error.
- Fix bug in suggest fields.
2013-01-15 12:07:01 -04:00
Hector Cortez
2b3be87abe BUG 10253 Error al usar Dependent fields con Suggest field SOLVED
- El proceso adjunto muestra el error.
- Several adjustments in suggest fields.
2013-01-15 11:42:56 -04:00
Victor Saisa Lopez
dd19d7f83c BUG 10232 "con el campo Date po default today o empty no..." SOLVED
- Problem in mask for dates fields
- Solved problem
- The possible values ..for the masks are in "Masks List" this in the
  field properties. The %D in the mask is not a correct value for a mask
* Available from version ProcessMaker-2.0.46
2012-12-21 15:18:03 -04:00
Victor Saisa Lopez
9f7f45ed80 BUG 10222 "Email Validation" SOLVED
- Validation "Email" in text field, can't read the character "-"
- To press key SUPR, added the character "."
- Solved problem, the validation now support character "-"
- Solved problem with key SUPR in validation "Email"
* Available from version ProcessMaker-2.0.46
2012-12-20 13:12:32 -04:00
jennylee
4e20a99193 BUG-3860 New Feature. Add options "Capitalize Phrase" and "Title Case" to "Text transform to".
New Feature. I added new functions to  Capitalize Phrase and Title Case in''Text transform to'.
2012-12-13 12:18:55 -04:00
Marco Antonio Nina
b3d66a84b0 BUG 7384 JavaScript getControlsInTheRow() function does not work... SOLVED
- No loaded the all fields of grid.
- Was add the fields missing.
2012-11-29 15:39:08 -04:00
julceslauhub
1804224a12 Merge pull request #994 from ralpheav/master
Adding SteepSuperVisorPeer interface class
2012-11-27 05:11:56 -08:00
ralph
c0ec55ee2b Fix for Json message makes Trigger dropdown list fail. 2012-11-26 18:03:59 -04:00
Victor Saisa Lopez
1851b43d5b BUG 6828 "Request that the address and label of link fields in..." SOLVED
- New feature
- Request that the address and label of link fields in DynaForms can be
  set and saved using case variables
- Populate links in a grid via trigger
- Added this new funcionality
- Take into account the following (examples):
    > Triggers
        * Populate a link field
            @@MyLink = "http://www.php.net";
            @@MyLink_label = "Read about PHP";

        * Populate links in a grid
            @=MYGRID = array();
            $i = 1;

            $rs = $stmt->executeQuery("SELECT USR_USERNAME FROM USERS", ResultSet::FETCHMODE_ASSOC);

            while ($rs->next()) {
                $row = $rs->getRow();

                @=MYGRID[$i] = array(
                    "MyField" => $row["USR_USERNAME"],
                    "MyLink" => "http://www.php.net",
                    "MyLink_label" => "Read about PHP, $i"
                );

                $i = $i + 1;
            }
    > JavaScript, populate a link field:
        getField("MyLink").href = "http://www.php.net";
        getField("MyLink").innerHTML = "Read about PHP";
* Available from version 2.0.46
2012-11-22 17:50:52 -04:00
Brayan Osmar Pereyra Suxo
7e5bbcdb39 BUG 9288 I add validation to negative numbers
I add validation to currency Int
2012-10-10 10:26:41 -04:00
Brayan Osmar Pereyra Suxo
750ce8ad51 BUG 9288 I add key '-' to currency Int
I add validation to currency Int
2012-10-09 10:19:11 -04:00
Brayan Osmar Pereyra Suxo
73a11b4425 BUG 9288 I add key '-' to currency Int
I add validation to currency Int
2012-10-09 10:16:19 -04:00
Victor Saisa Lopez
f68a5ea074 BUG 7408 "Fire Fox English/Sumatoria" SOLVED
- Grids in view mode displays the sum not properly
- Problem solved, improved SUM and AVG functions in grids
- It improves the visualization of the web page header, only for IE
* Available from version 2.0.45
2012-10-05 13:18:36 -04:00
Julio Cesar Laura
dd22e56dad Add keyCode 189 for the "-" character in IE, for the negative numbers on currency fields 2012-09-28 16:20:03 -04:00
Julio Cesar Laura
dfd2ff7534 BUG 8776 Required fields message: field names instead of labels SOLVED
- In the validation don't get the pm:label for the field of type textarea and dropdown
- Get correctly the labels
2012-09-25 12:59:56 -04:00
Victor Saisa Lopez
933dced14b BUG 5140 "Formula is not working in master dynaforms" SOLVED
- Not taken into account the attribute "Decimal Separator" for the
  execution of a formula in master DynaForms
- When entering data in a Currency/Percentage field is added spaces
  at the beginning (when the field is in a formula)
- Problem solved, has joined the attribute "Decimal Separator" to
  evaluate the formula
- It has rewritten the algorithm for the formula evaluation
* Available from version 2.0.44
2012-09-19 12:26:44 -04:00
Julio Cesar Laura
1d351cc97d BUG 9288 Change the source code to permite negative numbers in currency fields (IE) SOLVED
- Don't works on IE
- Add validation for IE browser
2012-09-17 17:08:41 -04:00
Victor Saisa Lopez
121da1d27b BUG 7070 "Sum function not calculating properly" SOLVED
- SUM and AVG functions does not work correctly in Grids
- No one takes into account the attribute "Decimal Separator"
- Problem solved, SUM and AVG functions now take into account the
  attribute "Decimal Separator"
* Available from version 2.0.44
2012-09-07 09:36:12 -04:00
Julio Cesar Laura
3f73e0e196 BUG 9658 validateForm() function fails if Dynaform includes Suggest box in it SOLVED
- Unnecesary code added recently to fix another issue that now is correctly validated
- Delete this unnecesary code
2012-08-22 18:08:34 -04:00
Victor Saisa Lopez
41f9312f7a BUG 9558 "Suggest field functionality is not intuitive..." SOLVED
- New feature, change SUGGEST field behavior for the insertion of
  a new record
- SUGGEST displays a temporary message to be placed in this field
- SUGGEST when you insert a new record to the database, it displays
  a popup message indicating the insertion
- SUGGEST this field allows the insertion of a new record by pressing
  the key Intro
- Is improved SUGGEST field behavior (when there are results, and when
  there are none)
- Problem solved by adding the SUGGEST field in the Dynaform (in the
  editor DynaForms) this in IE, when ckeck the option "Store new entry"
- Problem solved in method "String.prototype.trim" (JavaScript)
2012-08-16 15:37:15 -04:00
Brayan Osmar Pereyra Suxo
dbbad5457f BUG 9288 Currency field doesn't permite negative numbers SOLVED
- I add	negative value for type	currency
- I removed console.log
2012-07-31 17:02:22 -04:00
Brayan Osmar Pereyra Suxo
6c2bcc8742 BUG 9288 Currency field doesn't permite negative numbers SOLVED
- I add	negative value for type	currency
2012-07-31 16:57:02 -04:00
Victor Saisa Lopez
eabd17bec3 BUG 9464 "Numeric fields don't accept numbers from AZERTY..." SOLVED
- Numeric fields don't accept numbers from AZERTY keyboard
- Solved, validation took off that disabling the shift key
2012-07-26 16:43:32 -04:00
Brayan Osmar Pereyra Suxo
4899ce1ff2 BUG 9398 If exits more of one mask. don't work SOLVED
I add validate for used only firts mask
2012-07-19 19:23:55 -04:00
julceslauhub
938d3433f4 Merge pull request #328 from victorsl/BUG-8489
BUG 8489 "Los aplicados a los elementos de las grillas no..." SOLVED
2012-07-18 15:41:23 -07:00
Victor Saisa Lopez
ca0ade740b BUG 8489 "Los aplicados a los elementos de las grillas no..." SOLVED
- Revert change in function strReplace, strReplace -> stringReplace
2012-07-18 18:06:14 -04:00
Brayan Osmar Pereyra Suxo
a50df08a51 BUG 9398 Don't exist format of mask 'Bs. ##,##' SOLVED
I add format of mask 'Bs. ##,##'
2012-07-18 18:03:32 -04:00
Victor Saisa Lopez
d8d6493581 BUG 8489 "Los aplicados a los elementos de las grillas no..." SOLVED
- Style attribute defined in XML Dynaform for a field, not reflected in
  the grid this in IE
- Solved the problem, now we consider the attributes defined in the XML
2012-07-18 16:48:23 -04:00
Brayan Osmar Pereyra Suxo
806a4049cf BUG 9438 The mask isn't work SOLVED
I add property comma_separtor for work
2012-07-12 09:50:04 -04:00
Brayan Osmar Pereyra Suxo
9a1c4e6f72 BUG 9438 Don't add ceros the mask in the fields SOLVED
- I add code for add ceros in the fields
2012-07-11 18:53:53 -04:00