Expression for actualize the specific interface

Certified Associate Developer

Hi,

We are planning to develop an interface to actualize the functions in the attached file,

but we are not sure if Appian can actualize those functions.

If it dose , may you tell us the expressions?

Best regards

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Lead Developer

    Hi, Did slight modifications to above answers, hope this code exactly suits for your requirement.

    a!localVariables(
      local!data: {
        {
          number: 1,
          name: "Aaa",
          value: 123,
          status: "good"
        }
      },
      a!gridLayout(
        headerCells: {
          a!gridLayoutHeaderCell(label: "Number"),
          a!gridLayoutHeaderCell(label: "Name"),
          a!gridLayoutHeaderCell(label: "Value"),
          a!gridLayoutHeaderCell(label: "Status"),
          a!gridLayoutHeaderCell(label: "Operation"),
          
        },
        rows: a!forEach(
          items: local!data,
          expression: a!gridRowLayout(
            id: fv!index,
            contents: {
              a!textField(readOnly: false, value: fv!item.number),
              a!textField(readOnly: false, value: fv!item.name),
              a!textField(readOnly: false, value: fv!item.value),
              a!textField(readOnly: false, value: fv!item.status),
              a!buttonArrayLayout(
                buttons: {
                  a!buttonWidget(
                    label: "Add a blank row upon",
                    size: "SMALL",
                    saveInto: {
                      a!save(local!data, append(local!data, null))
                    }
                  ),
                  a!buttonWidget(
                    label: "Copy the data to next row",
                    size: "SMALL",
                    saveInto: {
                      a!save(
                        local!data,
                        insert(local!data, fv!item, fv!index + 1)
                      )
                    }
                  )
                }
              )
            }
          )
        )
      )
    )

  • 0
    Certified Associate Developer
    in reply to venkyuppala09

    Thank you for your sharing ;)

Reply Children
No Data