Uploaded image for project: 'JBoss BPMS Platform'
  1. JBoss BPMS Platform
  2. RHBPMS-4768

[GSS](6.4.z) "On Change Script Code" does not work properly for Short Date/Timestamp fields in Form Modeler for BPM Suite 6.4.x

XMLWordPrintable

    • CR1
    • Hide

      1) create a simple process definition with a variable of type "java.util.Date";
      2) generate the forms and set "On change Script code" with "alert("Boo");" value for "Date" field;
      3) save all, build&deploy the project and starts the process instance;
      4) set a value to the field, change its value and then click on "x" button, then the alert fired up;
      5) it is fired only by clicking on "x" button.

      Show
      1) create a simple process definition with a variable of type "java.util.Date"; 2) generate the forms and set "On change Script code" with "alert("Boo");" value for "Date" field; 3) save all, build&deploy the project and starts the process instance; 4) set a value to the field, change its value and then click on "x" button, then the alert fired up; 5) it is fired only by clicking on "x" button.

      There is an issue in the implementation of the "On Change Script Code" property for Short Date or Timestamp fields in the form modeler. If you add a simple javascript alert to that property, for instance:

      alert("boo");

      The alert is not fired if you click on the field or change the date after starting the process instance... alert is fired only by clicking on "x" button.

      Same javascript works for other field types such as Short text or Select box. Please see steps to reproduce for further details.

            tzimanyi@redhat.com Tibor Zimányi
            rhn-support-ajuricic Amana Juricic
            Jan Hrcek Jan Hrcek (Inactive)
            Jan Hrcek Jan Hrcek (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: