Error in PDF Export after the first call of a sql-macro producing a table output

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Medium
    • 3.0
    • Affects Version/s: 2.2.9
    • Component/s: Page - Export / Import
    • Environment:

      Whenever I use a sql macro producing a table as its ouput, I find the following lines in the exported PDF file. The following sql-macros behave correctly. You can find the html-output in the zip-file, the exported PDF is attached and the markup is contained in the .wiki file

      If you need further information, do not hesitate to contact me at oswald@schwermetall.de

      val2) return 1; if (val1 == val2) return 0; return -1; } function trimLeft(string) { var start; for (start = 0;
      (start < string.length) && (string.charAt(start) == ' '); start++) { } return string.substring(start); }
      function inCellIntSorter(value1, value2)

      { var val1 = parseInt(getElementInnerText(value1)); var val2 = parseInt(getElementInnerText(value2)); if (isNaN(val1) || (val1 > val2)) return 1; // NaN is bigger than all if (val1 == val2) return 0; return -1; }

      function inCellFloatSorter(value1, value2)

      { var val1 = parseFloat(getElementInnerText(value1)); var val2 = parseFloat(getElementInnerText(value2)); if (isNaN(val1) || (val1 > val2)) return 1; // NaN is bigger than all if (val1 == val2) return 0; return -1; }

      function customizeMacroTable(table, columnTyps, firstDataRowIndex, highLightMouseOverRow) { table =
      (typeof(table) == "string") ? document.getElementById(table) : table; if (table) { var lastClickableRow =
      firstDataRowIndex - 1; if (lastClickableRow < 0)

      { lastClickableRow = 0; // ensure at least the first row is clickable }

      for (rowIndex = 0; rowIndex <= lastClickableRow; rowIndex++) { var header =
      table.rows[rowIndex]; for(i=0; i

        1. PDF Export.zip
          55 kB
        2. PDF Export Test.pdf
          210 kB
        3. PDF Export Test.wiki
          0.9 kB

              Assignee:
              Unassigned
              Reporter:
              Andreas Oswald
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: