• QuestionApp Lab
  • Having trouble sending and receiving data from code.org data tables.

https://studio.code.org/projects/applab/GNwZ3OYmqgnHGk41TNOJAjfBfd0gFw_0mqk0hjJ-tQc/view
If you could help me that would be great.

    altZany Seems fine to me.... although CDO is migrating off of firebase which means databrowser and not signed in accounts will no longer be able to update/interact with the data

      altZany

      onEvent("Import", "click", function() {
        readRecords("User Cloud", {}, function(records) {
        for (var i =0; i < records.length; i++) {
          if (records[i].User == getUserId()) {
            if (records[i].Session == getText("Sessionid")) {
              setText("TimeRecords", records[i].Data);
            }
          }
        }
      });
      });

      think you forgot to put [i]'s

      4 days later

      I've seen that you've changed it, you may have misheard me.

      You changed records.Data to records[i].Data but you also need to change records.User to records[i].User and records.Session to records[i].Session within the readRecords function.

        11 days later

        altZany Could I have best answer? I'm trying to get some badge.

        Chat