hyperPad hyperPad Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Login

    How to use "For Each" tag loop on each object

    Scheduled Pinned Locked Moved
    Help and Support
    3
    116
    6.9k
    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.
    • D
      Deeeds @iTap Development
      last edited by

      @iTap-Development The output from this operation, using the Modify Array in this way, is going to be a whole array, right?

      iTap DevelopmentI 1 Reply Last reply Reply Quote 0
      • iTap DevelopmentI
        iTap Development @Deeeds
        last edited by

        @Deeeds yes it would. Which means you would have to set the behavior array to that output.
        And at that point it doesn’t make sense to do it this way.

        D 1 Reply Last reply Reply Quote 0
        • D
          Deeeds @iTap Development
          last edited by

          @iTap-Development That's what I mean, you're overwriting the array. Right? Can it be done? Does it work?

          iTap DevelopmentI 2 Replies Last reply Reply Quote 0
          • iTap DevelopmentI
            iTap Development @Deeeds
            last edited by

            @Deeeds yes, if you set the modification to SET and actually choose the array behavior(not how you did in the screen shot) it will overwrite the behavior array with the modify output.

            1 Reply Last reply Reply Quote 0
            • iTap DevelopmentI
              iTap Development @Deeeds
              last edited by

              @Deeeds but like I said, there no point doing it that way. In this case.

              D 1 Reply Last reply Reply Quote 0
              • D
                Deeeds @iTap Development
                last edited by

                @iTap-Development

                Can you explain how you came to understand that Value Type arrays are copies of the original?

                iTap DevelopmentI 2 Replies Last reply Reply Quote 0
                • iTap DevelopmentI
                  iTap Development @Deeeds
                  last edited by

                  @Deeeds played with them for an afternoon when they came out. Probably asked a question or two.
                  It’s not that complicated.

                  D 1 Reply Last reply Reply Quote 0
                  • D
                    Deeeds @iTap Development
                    last edited by

                    @iTap-Development You're absolutely right. It's not. I'm just trying to figure out how you'd glean this information from the current documentation. I couldn't, and I know what Value Types and Reference Types are, but the documentation lead me to believe they were talking about types, not Types of types.

                    And the inconsistencies in the documentation and app (which are legion) combined with the default choice being this operation mode made me think it was about the type of values IN the array that they were concerning themselves with, hence the talk about JSON, which solves a problem of JavaScript, that it can have arrays with multiple types of content... which can be a mess when communicating with others, wherein it needs to be forced to use arrays of a single type... hence the potential significance of talking about the OTHER type of types.

                    I hope I have time to think about explaining this again. I'm sure I can do better ;)

                    iTap DevelopmentI 1 Reply Last reply Reply Quote 0
                    • iTap DevelopmentI
                      iTap Development @Deeeds
                      last edited by

                      @Deeeds also, the purpose of the value type isn’t for for making copies, necessarily. It’s for dynamic stuff and nesting. What you did isn’t really the best use.

                      1 Reply Last reply Reply Quote 0
                      • iTap DevelopmentI
                        iTap Development @Deeeds
                        last edited by

                        @Deeeds I don’t think I used the documentation. I just tried it out.

                        D 1 Reply Last reply Reply Quote 0
                        • D
                          Deeeds @iTap Development
                          last edited by

                          @iTap-Development So did I. It didn't work. Pointer made no apparent difference to each type's response.

                          iTap DevelopmentI 2 Replies Last reply Reply Quote 0
                          • iTap DevelopmentI
                            iTap Development @Deeeds
                            last edited by

                            @Deeeds I can’t remember exactly how pointers work... @Hamed, how do the work?

                            1 Reply Last reply Reply Quote 0
                            • iTap DevelopmentI
                              iTap Development @Deeeds
                              last edited by

                              @Deeeds but in the example you made, I don’t think there would be a difference that you could see. I think it has something to do with outputs being in an array. Like if they set it once or update it continually. But don’t quote me on that!

                              D 1 Reply Last reply Reply Quote 0
                              • D
                                Deeeds @iTap Development
                                last edited by

                                @iTap-Development Ironic. I've just added a similar comment to an old question you asked about this that Hamed replied to. I don't think using "Pointer" here is the right question being asked.

                                You've nailed it, this is about continuous update versus single update. Which is a policy, not anything to do with pointers, per se.

                                1 Reply Last reply Reply Quote 0
                                • KamdroidK
                                  Kamdroid @Deeeds
                                  last edited by

                                  @Deeeds said in How to use "For Each" tag loop on each object:

                                  @Kamdroid

                                  it only takes a couple of seconds

                                  No. this is absolute nonsense. Patently false.

                                  If it only took a couple of seconds, I'd sometimes have done it.

                                  Save my project... several minutes, sometimes as much as minutes.

                                  Recreate the issue in another project that isolates this problem.

                                  Several minutes, depending on the problem. And there's no way to copy anything from one project to another...

                                  etc.

                                  .......
                                  A better question, why aren't there isolate examples of using every single feature of hyperPad if it's so easy to share?

                                  Because it’s uneccessary in most cases. There is documentation for each behaviour, that was enough for me to get where I am now.

                                  Also, how does it take that long for your projects to save? There must be something really wrong. Could you upload a screen video of it saving, it’s too unbelievable.

                                  D iTap DevelopmentI 2 Replies Last reply Reply Quote 1
                                  • D
                                    Deeeds @Kamdroid
                                    last edited by

                                    @Kamdroid
                                    Do I answer to you?

                                    KamdroidK iTap DevelopmentI 2 Replies Last reply Reply Quote 0
                                    • KamdroidK
                                      Kamdroid @Deeeds
                                      last edited by

                                      @Deeeds ? If you want to?

                                      D 1 Reply Last reply Reply Quote 0
                                      • D
                                        Deeeds @Kamdroid
                                        last edited by

                                        @Kamdroid Not in this case. I have far better things to do. And I'm sure you do, too.

                                        You can believe me, or not. I couldn't care less.

                                        1 Reply Last reply Reply Quote 0
                                        • iTap DevelopmentI
                                          iTap Development @Kamdroid
                                          last edited by

                                          @Kamdroid I was going to suggest a screen recording too....oh well

                                          1 Reply Last reply Reply Quote 0
                                          • iTap DevelopmentI
                                            iTap Development @Deeeds
                                            last edited by iTap Development

                                            @Deeeds where did you answering to him come from?! Asking for screen video? That was a request, not a command. Key word “could”.
                                            Although, answering to him isn’t all that bad of an idea!

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