select a user data by using piker field and auto populated user details in inline grid

Certified Associate Developer

i need to select user by using piker fields and  auto populated the details (email, user name and Name) and saved into a inline grid

  Discussion posts and replies are publicly visible

Parents
  • For example...

    a!localVariables(
      local!user,
      local!pgInfo: a!pagingInfo(startIndex: 1, batchSize: 1),
      local!dataSet: todatasubset(local!user, local!pgInfo),
      {
        a!pickerFieldUsers(
          label: "User",
          value: local!user,
          saveInto: local!user,
          maxSelections: 1
        ),
        a!gridField(
          columns: a!forEach(
            items: { "email", "firstName", "lastName" },
            expression: a!gridColumn(
              label: proper(fv!item),
              value: user(fv!row, fv!item)
            )
          ),
          data: local!dataSet,
          pagingSaveInto: local!pgInfo,
          showWhen: not(a!isNullOrEmpty(local!user))
        )
      }
    )

Reply
  • For example...

    a!localVariables(
      local!user,
      local!pgInfo: a!pagingInfo(startIndex: 1, batchSize: 1),
      local!dataSet: todatasubset(local!user, local!pgInfo),
      {
        a!pickerFieldUsers(
          label: "User",
          value: local!user,
          saveInto: local!user,
          maxSelections: 1
        ),
        a!gridField(
          columns: a!forEach(
            items: { "email", "firstName", "lastName" },
            expression: a!gridColumn(
              label: proper(fv!item),
              value: user(fv!row, fv!item)
            )
          ),
          data: local!dataSet,
          pagingSaveInto: local!pgInfo,
          showWhen: not(a!isNullOrEmpty(local!user))
        )
      }
    )

Children