I want to iterate a!save() expression 10 times

I want to iterate a a!save() expression for 10 (n times) when I press a button

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Senior Developer

    a!localVariables(
      local!X,
      {
      a!buttonArrayLayout(
        buttons: {
          a!buttonWidget(
            label: "Button",
            style: "OUTLINE",
            saveInto: a!forEach(
              items: enumerate(10)+1,
              expression: a!save(
                local!X[fv!index],fv!item
              )
            )
          )
        },
        align: "START",
        marginBelow: "NONE"
      )
    })

    What do you want to save using a!save() ?  Can you provide us with more details

Reply
  • 0
    Certified Senior Developer

    a!localVariables(
      local!X,
      {
      a!buttonArrayLayout(
        buttons: {
          a!buttonWidget(
            label: "Button",
            style: "OUTLINE",
            saveInto: a!forEach(
              items: enumerate(10)+1,
              expression: a!save(
                local!X[fv!index],fv!item
              )
            )
          )
        },
        align: "START",
        marginBelow: "NONE"
      )
    })

    What do you want to save using a!save() ?  Can you provide us with more details

Children