Navigation

    CreatiCode Scratch Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • CreatiCode

    Issue with copy table to table and append table to table

    Feedback
    2
    5
    273
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Tyller_
      Tyller_ Best Forum Helpers last edited by

      These blocks (I believe I’ve tested append to as well) take a table’s contents and put it in another table, but the issue is that it seems to sync stuff that is done to one table with the other, so if I copy table a to table b and set row 1 column hi of table a to “test” after copying, it sets row 1 column hi of table b to “test” as well, my guess is it’s some js variable cloning stuff going on (it doesn’t deep clone but soft clones so references are the same)

      <div component="post/signature" data-uid="255" class="post-signature">Check out my chat room project so you ppl can not use forums as chat rooms! https://play.creaticode.com/projects/66f2e1dcd1be43d82b886fbd?version=1 <p dir="auto">
      </div>

      info-creaticode 1 Reply Last reply Reply Quote 1
      • info-creaticode
        CreatiCode @Tyller_ last edited by info-creaticode

        @tyller_

        When you say you “set row 1 column hi of table a to ‘test’”, which block did you use? Is it “replace item at row [] column []”? We can’t seem to reproduce this issue using that block.

        784ac7fe-5f38-4425-a4cf-20f2ed532d3b-image.png

        Tyller_ 1 Reply Last reply Reply Quote 0
        • Tyller_
          Tyller_ Best Forum Helpers @info-creaticode last edited by Tyller_

          @info-creaticode I remember seeing something like it happen, I am going to try to reproduce it rq

          edit: It seems I am misremembering, either I’m not doing the exact steps or it was always like this but it seems to be doing it for columns, if i add a column to either table after using copy it adds to both of them

          <div component="post/signature" data-uid="255" class="post-signature">Check out my chat room project so you ppl can not use forums as chat rooms! https://play.creaticode.com/projects/66f2e1dcd1be43d82b886fbd?version=1 <p dir="auto">
          </div>

          info-creaticode 2 Replies Last reply Reply Quote 0
          • info-creaticode
            CreatiCode @Tyller_ last edited by

            @tyller_

            We are able to reproduce the issue now. It will be fixed soon. Thank you.

            1 Reply Last reply Reply Quote 1
            • info-creaticode
              CreatiCode @Tyller_ last edited by

              @tyller_

              This issue has been fixed.

              1 Reply Last reply Reply Quote 0
              • First post
                Last post