Skip to main content
April 7, 2023
Question

Why a!gridfieldColumn doesnt support mutiple tag fields in value we use a!tagField

  • April 7, 2023
  • 7 replies
  • 1 view

a!gridFieldColumn Doesnt show Tag Fields used in value

    7 replies

    April 7, 2023

    Multiple Tag Fields are not shown in a!gridFieldColumn

    Participating Frequently
    April 7, 2023

    Why do you need multiple tag fields when you can use multiple tag item.

     

    {
      a!localVariables(
        local!selectedId,
        local!employees: {
          a!map(
            id: 11,
            name: "Elizabeth Ward",
            dept: "Engineering",
            role: "Senior Engineer",
            team: "Front-End Components",
            pto: 15,
            startDate: today() - 500
          ),
          a!map(
            id: 22,
            name: "Michael Johnson",
            dept: "Finance",
            role: "Payroll Manager",
            team: "Accounts Payable",
            pto: 2,
            startDate: today() - 100
          ),
          a!map(
            id: 33,
            name: "John Smith",
            dept: "Engineering",
            role: "Quality Engineer",
            team: "User Acceptance Testing",
            pto: 5,
            startDate: today() - 1000
          ),
          a!map(
            id: 44,
            name: "Diana Hellstrom",
            dept: "Engineering",
            role: "UX Designer",
            team: "User Experience",
            pto: 49,
            startDate: today() - 1200
          ),
          a!map(
            id: 55,
            name: "Francois Morin",
            dept: "Sales",
            role: "Account Executive",
            team: "Commercial North America",
            pto: 15,
            startDate: today() - 700
          ),
          a!map(
            id: 66,
            name: "Maya Kapoor",
            dept: "Sales",
            role: "Regional Director",
            team: "Front-End Components",
            pto: 15,
            startDate: today() - 1400
          ),
          a!map(
            id: 77,
            name: "Anthony Wu",
            dept: "Human Resources",
            role: "Benefits Coordinator",
            team: "Accounts Payable",
            pto: 2,
            startDate: today() - 300
          )
        },
        {
          a!gridField(
            /* Replace the dummy data with a query, rule, or function that returns a datasubset and uses fv!pagingInfo as the paging configuration. */
            data: todatasubset(local!employees, fv!pagingInfo),
            columns: {
              a!gridColumn(
                label: "Name",
                value: a!linkField(
                  links: {
                    a!dynamicLink(
                      label: fv!row.name,
                      value: fv!row.id,
                      saveInto: local!selectedId
                    )
                  }
                )
              ),
              a!gridColumn(label: "Role", value: fv!row.role),
              a!gridColumn(label: "Department", value: fv!row.dept),
              a!gridColumn(
                value: a!tagField(
                  tags: {
                    a!tagItem(text: "test"),
                    a!tagItem(text: "test2")
                  }
                )
              )
            },
            pageSize: 7,
            rowHeader: 1
          ),
          
        }
      )
    }

    April 7, 2023

    Can u pls try using tag field as commented.


    a!gridColumn(
    label: "Name",
    value: {a!tagfield(),

    a!tagField)
    }
    )