Kuali Rice Development
  1. Kuali Rice Development
  2. KULRICE-10397

Allow for callback methods for quickfinder (lookup) returns

    Details

    • Type: Improvement Improvement
    • Status: Closed Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.5
    • Security Level: Public (Public: Anyone can view)
    • Labels:
      None
    • Similar issues:
      KULRICE-6615Quickfinder lookups result in incident reports on return
      KULRICE-13634Fill AFT Gap: KRAD Labs - Quickfinder Callback
      KULRICE-12977Allow for better callback configuration for UIF events
      KULRICE-13006Method access exception when opening a quickfinder
      KULRICE-10908Add additionalParameters to quickfinder
      KULRICE-7983Allow hidden criteria fields to be specified from quickfinder widget
      KULRICE-7169Rice object lookup quickfinders not working when related module is in EMBEDDED mode
      KULRICE-12499AFT Failure some Quickfinder lightbox don't return value
      KULRICE-12692Disallow quickfinders with controls other than text and select
      KULRICE-4802Quickfinder error when searching for related object not by primary key
    • Epic Link:
    • Rice Module:
      KRAD
    • Application Requirement:
      KC
    • Sprint:
      2.5.0-m2 Sprint 1, 2.5.0-m2 Sprint 3
    • KAI Review Status:
      Not Required
    • KTI Review Status:
      Not Required
    • Code Review Status:
      Not Required
    • Include in Release Notes?:
      Yes

      Description

      Currently to write logic for a lookup return, the controller 'refresh' method must be overridden that checks request parameters to indicate what view is being returned from. This causes a lot of code in the refresh method. Also, it is not possible to know what quickfinder you are returning from (for an example, what collection line the quickfinder was on).

      To help with this, we can provide a callback mechanism that can be configured on the quickfinder.

      First, the quickfinder can take the name of method (callbackMethod) that would default to a method on the view helper service. When this is registered, the default refresh handling would invoke the callback automatically when that quickfinder is used.

      Next, a context can be provided to send to the callback. This context (callbackContext) will be a map that can have expressions. For example, you can pass back the line index associated with the quickfinder like this:

      quickfinder.callbackContext="lineIndex:@

      {#index}

      "

        Activity

        Hide
        Nisha Gupta (Inactive) added a comment -

        Callback functionality implemented on quickfinders.

        Show
        Nisha Gupta (Inactive) added a comment - Callback functionality implemented on quickfinders.

          People

          • Assignee:
            Nisha Gupta (Inactive)
            Reporter:
            Jerry Neal (Inactive)
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - 2 days
              2d
              Remaining:
              Remaining Estimate - 0 minutes
              0m
              Logged:
              Time Spent - 2 days
              2d

                Agile

                  Structure Helper Panel