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

Add NODE or similar context variable to reference the current node being rendered

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0.0-b6, 2.0
    • 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

      From an email thread:

      Jerry, does the LINE context variable work with the tree component? Could it? Or would it be appropriate to have one called NODE or some such that serves a similar function? I can think of several places where this would have helped me, but I didn't know about LINE at all before your Kuali Days session.

      Hey Peter, No that is only exported for collection groups. We could do something for trees. Maybe export a 'node' variable that has the data object for the current node?

        Attachments

          Activity

          Hide
          jcoltrin Jessica Coltrin (Inactive) added a comment -

          needed by KRMS

          Show
          jcoltrin Jessica Coltrin (Inactive) added a comment - needed by KRMS
          Hide
          gilesp Peter Giles (Inactive) added a comment -

          Seems this was mostly implemented already, I've got this working (thanks Jerry) by making Node extend ComponentBase. However, it only gets me part of the way there as #node doesn't work on paths like refreshWhenChanged that go to the client side. I've got a patch that makes this work, I just have my doubts that I'm doing it "the right way"

          Please see https://fisheye.kuali.org/cru/rice-79

          Show
          gilesp Peter Giles (Inactive) added a comment - Seems this was mostly implemented already, I've got this working (thanks Jerry) by making Node extend ComponentBase. However, it only gets me part of the way there as #node doesn't work on paths like refreshWhenChanged that go to the client side. I've got a patch that makes this work, I just have my doubts that I'm doing it "the right way" Please see https://fisheye.kuali.org/cru/rice-79
          Hide
          gilesp Peter Giles (Inactive) added a comment -

          I resolved this since the functionality is working now. For the feature represented in the rice-79 code review, I've created another issue: KULRICE-6437

          Show
          gilesp Peter Giles (Inactive) added a comment - I resolved this since the functionality is working now. For the feature represented in the rice-79 code review, I've created another issue: KULRICE-6437
          Hide
          jcoltrin Jessica Coltrin (Inactive) added a comment -

          Closing since these items are now in the release notes.

          Show
          jcoltrin Jessica Coltrin (Inactive) added a comment - Closing since these items are now in the release notes.

            People

            • Assignee:
              samuel Samuel Holtzkampf (Inactive)
              Reporter:
              gilesp Peter Giles (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: