Skip to content

jexcel.js:11133 Self Reference detected #1473

@Hatelace

Description

@Hatelace
<html>
  <script src="https://bossanova.uk/jspreadsheet/v4/jexcel.js"></script>
  <script src="https://jsuites.net/v4/jsuites.js"></script>
  <link
    rel="stylesheet"
    href="https://jsuites.net/v4/jsuites.css"
    type="text/css"
  />
  <link
    rel="stylesheet"
    href="https://bossanova.uk/jspreadsheet/v4/jexcel.css"
    type="text/css"
  />

<div id="spreadsheet"></div>

<script>
  var data = [
    ["Cheese", 10, 6.0, "=B1*C1"],
    ["Apples", 5, 4.0, "=B2*C2"],
    ["Carrots", 5, 1.0, "=B3*C3"],
    ["Oranges", 6, 2.0, "=B4*C4"],
  ];

  var table = jspreadsheet(document.getElementById("spreadsheet"), {
    data: data,
    footers: [['=A1', '=SUM(B1:B4)', '=C1', '=D1']],
    defaultColWidth: 200,
  });
  </script>
</html>

I am getting #ERROR in footer. Why? And what am I doing wrong?
In console "Self Reference detected"

Activity

GBonnaire

GBonnaire commented on Dec 3, 2021

@GBonnaire
Contributor

I have make a PR to fix your issue : #1476

added a commit that references this issue on Dec 5, 2021
0d8208f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @GBonnaire@Hatelace

        Issue actions

          jexcel.js:11133 Self Reference detected · Issue #1473 · jspreadsheet/ce