Uploaded image for project: 'Kuali Rice Development'
  1. Kuali Rice Development
  2. KULRICE-7484

Ajax Improvements- Add a preSubmitCall property to ActionField

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.2.0-m2, 2.2
    • Component/s: Development
    • Security Level: Public (Public: Anyone can view)
    • Labels:
      None
    • Rice Module:
      KRAD
    • KAI Review Status:
      Not Required
    • KTI Review Status:
      Not Required

      Description

      Add property preSubmitCall to ActionField. This will invoke script before the form is submitted. A boolean will be returned to indicate whether the form submission should continue.

        Attachments

          Activity

          samuel Samuel Holtzkampf (Inactive) created issue -
          sonam Sona Sona (Inactive) made changes -
          Field Original Value New Value
          Link This issue cloned from KULRICE-7280 [ KULRICE-7280 ]
          sonam Sona Sona (Inactive) made changes -
          Reporter Samuel Holtzkampf [ samuel ] Sona Sona [ sonam ]
          Description After downloading a note attachment, exception is thrown on any other action like add line - binding paths are null. We have had this bug previously. Add property preSubmitCall to ActionField. This will invoke script before the form is submitted. A boolean will be returned to indicate whether the form submission should continue.
          Rice Lead jkneal
          sonam Sona Sona (Inactive) made changes -
          Link This issue cloned from KULRICE-7280 [ KULRICE-7280 ]
          sonam Sona Sona (Inactive) made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          sonam Sona Sona (Inactive) made changes -
          Issue Type Bug Fix [ 1 ] New Feature [ 2 ]
          Hide
          sonam Sona Sona (Inactive) added a comment -

          Committed the second set of changes with the wrong jira jira#KULRICE-7484.It should have been KULRICE-6671. But it includes the following changes

          1. Add property ajaxSubmit to ActionField. When set to true this will submit the form using Ajax instead of the browser submit. Will default to updating the page contents.
          2. Add property preSubmitCall to ActionField. This will invoke script before the form is submitted. A boolean will be returned to indicate whether the form submission should continue.
          3. Add property successCallback to AjaxActionField. This will be invoked for succesful ajax calls.
          4. Add property errorCallback to AjaxActionField. This will be invoked for failed ajax calls.
          5. In krad.ajax, do cleanup to have an ajaxSubmitForm and stantard submitForm (browser). Methods to do validation before hand.
          6. Refactoring action parameters to not do script writing of hiddens, but to use new 'data' attributes. For ajax calls the data attributes will be picked up and added to the ajax data. For standard browser submits the data attributes will be picked up and added as hiddens

          Show
          sonam Sona Sona (Inactive) added a comment - Committed the second set of changes with the wrong jira jira# KULRICE-7484 .It should have been KULRICE-6671 . But it includes the following changes 1. Add property ajaxSubmit to ActionField. When set to true this will submit the form using Ajax instead of the browser submit. Will default to updating the page contents. 2. Add property preSubmitCall to ActionField. This will invoke script before the form is submitted. A boolean will be returned to indicate whether the form submission should continue. 3. Add property successCallback to AjaxActionField. This will be invoked for succesful ajax calls. 4. Add property errorCallback to AjaxActionField. This will be invoked for failed ajax calls. 5. In krad.ajax, do cleanup to have an ajaxSubmitForm and stantard submitForm (browser). Methods to do validation before hand. 6. Refactoring action parameters to not do script writing of hiddens, but to use new 'data' attributes. For ajax calls the data attributes will be picked up and added to the ajax data. For standard browser submits the data attributes will be picked up and added as hiddens
          Hide
          sonam Sona Sona (Inactive) added a comment -

          Resolving since this is a duplicate of KULRICE-6838

          Show
          sonam Sona Sona (Inactive) added a comment - Resolving since this is a duplicate of KULRICE-6838
          sonam Sona Sona (Inactive) made changes -
          Status In Progress [ 3 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          jcoltrin Jessica Coltrin (Inactive) made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          spatterson Shem Patterson (Inactive) made changes -
          Workflow custom [ 145656 ] Copy of custom for rice [ 214439 ]
          spatterson Shem Patterson (Inactive) made changes -
          Workflow Copy of custom for rice [ 214439 ] custom [ 224187 ]
          spatterson Shem Patterson (Inactive) made changes -
          Workflow custom [ 224187 ] Rice Workflow [ 233935 ]

            People

            • Assignee:
              sonam Sona Sona (Inactive)
              Reporter:
              sonam Sona Sona (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: