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 Bug Fix
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.4
    • Component/s: Development
    • Security Level: Public (Public: Anyone can view)
    • Labels:
      None
    • Similar issues:
      KULRICE-8697Binding events on components within a row details group do not execute
      KULRICE-7985Problems with tables within divs and filling past the div container
      KULRICE-7448Database upgrade scripts should not drop tables
      KULRICE-5591Duplicate values indexed in KREW_DOC_HDR_EXT_*_T tables on occasion
      KULRICE-7410Rice Upgrade scripts should not have "demo" or sample data or tables
      KULRICE-13193Look into "Multiple services with same endpoint url declared and saved in routing table" WARN messages
      KULRICE-5437UIF Framework - Add standard markup for table semantics
      KULRICE-7996Progressive disclosure and refresh within table not working
      KULRICE-9101KREW_DOC_HDR_S is used in multiple tables which can cause confusion
      KULRICE-10916Sorting is broken for tables using server side paging
    • 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.

        Activity

        Hide
        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
        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:
            Brian Smith (Inactive)
            Reporter:
            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

                Structure Helper Panel