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

Add functionality for custom evaluation via default widgets templates [eDocLite]

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.9.1.4
    • Component/s: Development
    • Labels:
      None
    • Rice Module:
      KEW

      Description

      Added code to support the passing of a parameter to default widgets.xml template calls for standard form field definitions. This is helpful in making custom field validation simpler for standard form fields (textarea, textbox, checkbox, radio, select list, etc..).

      This is done by passing a parameter named "customFunction" into the widgets_render template and propagating that parameter down through the respective following template calls. When the actual field is rendered (by input, select, etc..) the value of this parameter is evaluated by an xsl:if statement. If there is a value, the attribute is added onto the rendering line with an event. If no value is found, the attribute is not added and everything proceeds as it did before. (This should not impact previous data/forms).

      Field Types and the associated event handler:
      Textbox: onKeyUp
      Textarea: onKeyUp
      Select: onChange
      Radio: onClick
      Checkbox: onClick
      NOTE: These can be EASILY changed, added, or removed if need be.

      The second issue included in this JIRA is a similar functionality added to the default buttons template. The same basic idea is used there, where you pass a parameter named "fname". When a value is given, the input render replaces the standard onClick="buttonClick(

      {actionTitle}

      )" with onClick="buttonClickFunctionName(

      {fname}

      )" which causes the custom function to fire when it is given. Again, this is ignored if not present so it should not impact previous forms. Note that this utilizes buttonClickFunctionName as implemented in edoclite1.js and referenced in KULRICE-2123

      Both of these changes are included in the widgets.xml file attached to this JIRA.

        Attachments

          Activity

          Hide
          grpatter Greg Patterson (Inactive) added a comment -

          Completed but not yet committed to the project.

          Show
          grpatter Greg Patterson (Inactive) added a comment - Completed but not yet committed to the project.
          Hide
          csolin Craig Solinski (Inactive) added a comment -

          Code has been committed.

          Show
          csolin Craig Solinski (Inactive) added a comment - Code has been committed.

            People

            • Assignee:
              grpatter Greg Patterson (Inactive)
              Reporter:
              grpatter Greg Patterson (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: