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

Allow for disabled expressions to be partially evaluated server side

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.4
    • Security Level: Public (Public: Anyone can view)
    • Labels:
      None
    • Rice Module:
      KRAD
    • Application Requirement:
      KC
    • Sprint:
      2.4.0-m4 KRAD UXI Sprint 2
    • KAI Review Status:
      Not Required
    • KTI Review Status:
      Not Required
    • Code Review Status:
      Not Required
    • Include in Release Notes?:
      Yes

      Description

      In some cases, whether a disabled condition should apply depends on information only available server side.

      For example, suppose we have a system parameter which determines whether a disabled check should be applied. Currently there is no way to check this parameter in the disabled condition (since it is not available client side). The only way to do this is with property replacers. It would be much more convenient if part of the expression could be evaluated server side.

      One way to do this would be to have a convention that when the expression placeholder is present, to evaluate this part server side. The result goes into the client side expression.

      for example:

      disabled="@

      {getParamInd('ENABLE_CHECK')}

      and (field3 eq 'foo')"

      would translate to the client side expression

      "true and (field3 eq 'foo')"

      or

      "false and (field3 eq 'foo')"

      We might want to be smarter though and if the server expression evaluates to false not set the disabled condition at all.

        Attachments

          Activity

          jkneal Jerry Neal (Inactive) created issue -
          jcoltrin Jessica Coltrin (Inactive) made changes -
          Field Original Value New Value
          Fix Version/s 2.4-backlog [ 16596 ]
          jkneal Jerry Neal (Inactive) made changes -
          Component/s User Experience (UX) [ 13465 ]
          gathreya Gayathri Athreya made changes -
          Priority Major [ 3 ] Critical [ 2 ]
          bsmith Brian Smith (Inactive) made changes -
          Assignee Brian Smith [ bsmith ]
          bsmith Brian Smith (Inactive) made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          bsmith Brian Smith (Inactive) made changes -
          Sprint 2.4.0-m4 KRAD UXI Sprint 1 [ 159 ]
          bsmith Brian Smith (Inactive) made changes -
          Rank Ranked higher
          bsmith Brian Smith (Inactive) made changes -
          Original Estimate 1 day [ 28800 ]
          Remaining Estimate 1 day [ 28800 ]
          bsmith Brian Smith (Inactive) logged work - 06/Jan/14 2:07 PM
          • Time Spent:
            1 day
             
            <No comment>
          bsmith Brian Smith (Inactive) made changes -
          Remaining Estimate 1 day [ 28800 ] 0 minutes [ 0 ]
          Time Spent 1 day [ 28800 ]
          Worklog Id 91733 [ 91733 ]
          bsmith Brian Smith (Inactive) made changes -
          Status In Progress [ 3 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          bsmith Brian Smith (Inactive) made changes -
          Fix Version/s 2.4.0-m3 [ 17037 ]
          gathreya Gayathri Athreya made changes -
          Link This issue is fixed by KCINFR-986 [ KCINFR-986 ]
          jcoltrin Jessica Coltrin (Inactive) made changes -
          Fix Version/s 2.4.0-m3 [ 17037 ]
          jcoltrin Jessica Coltrin (Inactive) made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

            People

            • Assignee:
              bsmith Brian Smith (Inactive)
              Reporter:
              jkneal Jerry Neal (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 1 day
                1d
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 day
                1d