Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • CreatiCode
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

CreatiCode Scratch Forum

  1. CreatiCode Forum
  2. Feedback
  3. Issue with copy table to table and append table to table

Issue with copy table to table and append table to table

Scheduled Pinned Locked Moved Feedback
5 Posts 2 Posters 1.4k Views 1 Watching
  • 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_T Offline
    Tyller_T Offline
    Tyller_
    trusted helpers
    wrote on last edited by
    #1

    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>

    CreatiCodeI 1 Reply Last reply
    1
    • Tyller_T Tyller_

      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)

      CreatiCodeI Offline
      CreatiCodeI Offline
      CreatiCode
      wrote on last edited by info-creaticode
      #2

      @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_T 1 Reply Last reply
      0
      • CreatiCodeI 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_T Offline
        Tyller_T Offline
        Tyller_
        trusted helpers
        wrote on last edited by Tyller_
        #3

        @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>

        CreatiCodeI 2 Replies Last reply
        0
        • Tyller_T 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

          CreatiCodeI Offline
          CreatiCodeI Offline
          CreatiCode
          wrote on last edited by
          #4

          @tyller_

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

          1 Reply Last reply
          1
          • Tyller_T 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

            CreatiCodeI Offline
            CreatiCodeI Offline
            CreatiCode
            wrote on last edited by
            #5

            @tyller_

            This issue has been fixed.

            1 Reply Last reply
            0

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • CreatiCode