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

Multiple execution of script within table contents causes duplicate init data tables warning

    Details

    • Type: Bug Fix
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.4
    • 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
    • Code Review Status:
      Not Required
    • Include in Release Notes?:
      Yes

      Description

      KRAD Sampleapp - Labs - KSA transaction. Disclose one of the details and you get an error from data tables about being initialized twice.

      This seems to be a problem with executing script twice. Another issue is in Rice sampleapp, row details demo 'TableCollection inside the details itself' the sub-collection has two disclosure icons.

      First the table gets init from run hidden scripts on refresh, then again in createTable jQuery(oTable).on("dataTables.tableDraw", function () { handler for the parent table.

      Note sure why the run hidden scripts is needed on the redraw.

        Attachments

          Activity

          Hide
          bsmith Brian Smith (Inactive) added a comment -

          Making sure name gets taken off first fixed it. This is the best I can come up as to what was happening:
          evalScript gets called
          creating the table triggers a draw event halting the completion of the original evalScript
          draw or parent in turn calls runHiddenScript

          Also made sure the event's target matched what the handler is on to make sure logic does not get activated by child elements in the future

          Show
          bsmith Brian Smith (Inactive) added a comment - Making sure name gets taken off first fixed it. This is the best I can come up as to what was happening: evalScript gets called creating the table triggers a draw event halting the completion of the original evalScript draw or parent in turn calls runHiddenScript Also made sure the event's target matched what the handler is on to make sure logic does not get activated by child elements in the future

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 4 hours
                4h
                Remaining:
                Time Spent - 3 hours Remaining Estimate - 1 hour
                1h
                Logged:
                Time Spent - 3 hours Remaining Estimate - 1 hour
                3h